diff options
author | Rodrigo Moya <rodrigo@ximian.com> | 2003-12-23 20:25:21 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2003-12-23 20:25:21 +0800 |
commit | 3022554239b4f9ee31e622048a849a33a1ea54d5 (patch) | |
tree | 021d7a26efdb4cf5122333feaf1150437f6cb667 /calendar/gui/calendar-component.c | |
parent | 3270f7a07f0ffa0f111804c0e55cdc0b479bd690 (diff) | |
download | gsoc2013-evolution-3022554239b4f9ee31e622048a849a33a1ea54d5.tar.gz gsoc2013-evolution-3022554239b4f9ee31e622048a849a33a1ea54d5.tar.zst gsoc2013-evolution-3022554239b4f9ee31e622048a849a33a1ea54d5.zip |
renamed from *_uri, to work with ESource's rather than with plain URIs.
2003-12-22 Rodrigo Moya <rodrigo@ximian.com>
* gui/gnome-cal.[ch] (gnome_calendar_add_event_source,
gnome_calendar_remove_event_source): renamed from *_uri, to work with
ESource's rather than with plain URIs.
(gnome_calendar_set_default_source): ditto.
* gui/control-factory.c (set_prop):
* gui/calendar-component.c (add_uri_for_source, remove_uri_for_source,
update_uri_for_primary_selection):
use sources instead of uris with the GnomeCalendar widget.
svn path=/trunk/; revision=24005
Diffstat (limited to 'calendar/gui/calendar-component.c')
-rw-r--r-- | calendar/gui/calendar-component.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/calendar/gui/calendar-component.c b/calendar/gui/calendar-component.c index c9be642fbd..2167415d9b 100644 --- a/calendar/gui/calendar-component.c +++ b/calendar/gui/calendar-component.c @@ -82,19 +82,13 @@ extern ECompEditorRegistry *comp_editor_registry; static void add_uri_for_source (ESource *source, GnomeCalendar *calendar) { - char *uri = e_source_get_uri (source); - - gnome_calendar_add_event_uri (calendar, uri); - g_free (uri); + gnome_calendar_add_event_source (calendar, source); } static void remove_uri_for_source (ESource *source, GnomeCalendar *calendar) { - char *uri = e_source_get_uri (source); - - gnome_calendar_remove_event_uri (calendar, uri); - g_free (uri); + gnome_calendar_remove_event_source (calendar, source); } static gboolean @@ -193,9 +187,7 @@ update_uri_for_primary_selection (CalendarComponent *calendar_component) return; /* Set the default */ - uri = e_source_get_uri (source); - gnome_calendar_set_default_uri (priv->calendar, uri); - g_free (uri); + gnome_calendar_set_default_source (priv->calendar, source); /* Make sure we are embedded first */ calendar_control_sensitize_calendar_commands (priv->view_control, priv->calendar, TRUE); |