aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--calendar/ChangeLog2
-rw-r--r--calendar/gui/gnome-cal.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 2d111ef89c..09cd95766d 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -3,6 +3,8 @@
* gui/e-calendar-table.c (tasks_popup_menu): Cast signal handlers
to GtkSignalFunc, avoid warnings.
+ * gui/gnome-cal.c (set_view): Only set view ID if we have an instance.
+
2003-01-14 Ettore Perazzoli <ettore@ximian.com>
* cal-util/Makefile.am (EXTRA_DIST): cal-util-marshal.list.
diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c
index 6563642afe..53860db7c7 100644
--- a/calendar/gui/gnome-cal.c
+++ b/calendar/gui/gnome-cal.c
@@ -1244,7 +1244,8 @@ set_view (GnomeCalendar *gcal, GnomeCalendarViewType view_type,
updating = TRUE;
gtk_notebook_set_page (GTK_NOTEBOOK (priv->notebook), (int) view_type);
- gal_view_instance_set_current_view_id (priv->view_instance, view_id);
+ if (priv->view_instance)
+ gal_view_instance_set_current_view_id (priv->view_instance, view_id);
updating = FALSE;
if (grab_focus)