From 3bc71a52c1e6db329c2906f5f2ce414059ef2366 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Tue, 9 Apr 2002 15:05:55 +0000 Subject: 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 --- calendar/gui/calendar-component.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'calendar/gui/calendar-component.c') diff --git a/calendar/gui/calendar-component.c b/calendar/gui/calendar-component.c index 211a79fa39..a9cc8a89f9 100644 --- a/calendar/gui/calendar-component.c +++ b/calendar/gui/calendar-component.c @@ -83,6 +83,7 @@ static EvolutionShellComponentResult create_view (EvolutionShellComponent *shell_component, const char *physical_uri, const char *type, + const char *view_info, BonoboControl **control_return, void *closure) { @@ -101,6 +102,8 @@ create_view (EvolutionShellComponent *shell_component, } bonobo_control_set_property (control, "folder_uri", physical_uri, NULL); + if (!g_strcasecmp (type, "calendar") && *view_info) + bonobo_control_set_property (control, "view", view_info, NULL); *control_return = control; -- cgit v1.2.3