From 7d42ed47286e7456068937dfb24335fe4bb9f74a Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Fri, 17 May 2002 14:54:31 +0000 Subject: set the view to the current view 2002-05-17 JP Rosevear * gui/gnome-cal.c (gnome_calendar_setup_view_menus): set the view to the current view svn path=/trunk/; revision=16939 --- calendar/gui/gnome-cal.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'calendar/gui') diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c index 0b83d18392..848902fa04 100644 --- a/calendar/gui/gnome-cal.c +++ b/calendar/gui/gnome-cal.c @@ -1414,6 +1414,8 @@ gnome_calendar_setup_view_menus (GnomeCalendar *gcal, BonoboUIComponent *uic) priv->view_menus = gal_view_menus_new (priv->view_instance); gal_view_menus_apply (priv->view_menus, uic, NULL); + gnome_calendar_set_view (gcal, priv->current_view_type, TRUE, FALSE); + gtk_signal_connect (GTK_OBJECT (priv->view_instance), "display_view", GTK_SIGNAL_FUNC (display_view_cb), gcal); display_view_cb (priv->view_instance, gal_view_instance_get_current_view (priv->view_instance), gcal); -- cgit v1.2.3