aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/calendar-component.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-component.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-component.c')
-rw-r--r--calendar/gui/calendar-component.c3
1 files changed, 3 insertions, 0 deletions
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;