aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/calendar-commands.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2002-04-09 23:05:55 +0800
committerDan Winship <danw@src.gnome.org>2002-04-09 23:05:55 +0800
commit3bc71a52c1e6db329c2906f5f2ce414059ef2366 (patch)
treebabde4dd47aeb9efad9c4ccffd903af59f74ddcf /calendar/gui/calendar-commands.c
parentb782a8c304485de3ae80f53ac100e41f4a6f747f (diff)
downloadgsoc2013-evolution-3bc71a52c1e6db329c2906f5f2ce414059ef2366.tar
gsoc2013-evolution-3bc71a52c1e6db329c2906f5f2ce414059ef2366.tar.gz
gsoc2013-evolution-3bc71a52c1e6db329c2906f5f2ce414059ef2366.tar.bz2
gsoc2013-evolution-3bc71a52c1e6db329c2906f5f2ce414059ef2366.tar.lz
gsoc2013-evolution-3bc71a52c1e6db329c2906f5f2ce414059ef2366.tar.xz
gsoc2013-evolution-3bc71a52c1e6db329c2906f5f2ce414059ef2366.tar.zst
gsoc2013-evolution-3bc71a52c1e6db329c2906f5f2ce414059ef2366.zip
Add view_info arg. If the view_info is non-empty and this is a calendar
* gui/component-factory.c (create_view): Add view_info arg. If the view_info is non-empty and this is a calendar folder, set the "view" property on the control's propertybag. * gui/control-factory.c (calendar_properties_init): Set up the "view" property. (get_prop, set_prop): handle the "view" property by getting/setting the GnomeCalendar's view. Unfortunately, this doesn't actually work. See #23208. * gui/calendar-commands.c (calendar_control_activate): Set the UI component's container before calling gnome_calendar_set_ui_component so that the search bar initialization will work. svn path=/trunk/; revision=16400
Diffstat (limited to 'calendar/gui/calendar-commands.c')
-rw-r--r--calendar/gui/calendar-commands.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/calendar/gui/calendar-commands.c b/calendar/gui/calendar-commands.c
index 4165760231..dcd17fe8c7 100644
--- a/calendar/gui/calendar-commands.c
+++ b/calendar/gui/calendar-commands.c
@@ -686,12 +686,12 @@ calendar_control_activate (BonoboControl *control,
uic = bonobo_control_get_ui_component (control);
g_assert (uic != NULL);
- gnome_calendar_set_ui_component (gcal, uic);
-
remote_uih = bonobo_control_get_remote_ui_container (control);
bonobo_ui_component_set_container (uic, remote_uih);
bonobo_object_release_unref (remote_uih, NULL);
+ gnome_calendar_set_ui_component (gcal, uic);
+
bonobo_ui_component_add_verb_list_with_data (uic, verbs, gcal);
bonobo_ui_component_freeze (uic, NULL);