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/control-factory.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/control-factory.c')
-rw-r--r-- | calendar/gui/control-factory.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/calendar/gui/control-factory.c b/calendar/gui/control-factory.c index 58436ec841..b114300b5a 100644 --- a/calendar/gui/control-factory.c +++ b/calendar/gui/control-factory.c @@ -118,6 +118,8 @@ set_prop (BonoboPropertyBag *bag, GnomeCalendar *gcal; char *string; GnomeCalendarViewType view; + ESource *source; + ESourceGroup *group; BonoboControl *control = user_data; gcal = (GnomeCalendar *) bonobo_control_get_widget (control); @@ -125,7 +127,12 @@ set_prop (BonoboPropertyBag *bag, switch (arg_id) { case PROPERTY_CALENDAR_URI_IDX: string = BONOBO_ARG_GET_STRING (arg); - if (gnome_calendar_add_event_uri (gcal, string)) { + + group = e_source_group_new ("", string); + source = e_source_new ("", ""); + e_source_set_group (source, group); + + if (gnome_calendar_add_event_source (gcal, source)) { calendar_control_sensitize_calendar_commands (control, gcal, TRUE); } else { char *msg; @@ -136,6 +143,10 @@ set_prop (BonoboPropertyBag *bag, GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (gcal)))); g_free (msg); } + + g_object_unref (source); + g_object_unref (group); + break; case PROPERTY_CALENDAR_VIEW_IDX: |