aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Petter Jansson <hpj@ximian.com>2003-01-15 03:47:00 +0800
committerHans Petter <hansp@src.gnome.org>2003-01-15 03:47:00 +0800
commitfcdb82a93ae7cd8ef6bc7252f77b8af8afb98b13 (patch)
tree1d377a10e52b27d55f7ee30402bf15b7ea2efd66
parent0f17a92b280904dea1153354ab86e279c6444636 (diff)
downloadgsoc2013-evolution-fcdb82a93ae7cd8ef6bc7252f77b8af8afb98b13.tar
gsoc2013-evolution-fcdb82a93ae7cd8ef6bc7252f77b8af8afb98b13.tar.gz
gsoc2013-evolution-fcdb82a93ae7cd8ef6bc7252f77b8af8afb98b13.tar.bz2
gsoc2013-evolution-fcdb82a93ae7cd8ef6bc7252f77b8af8afb98b13.tar.lz
gsoc2013-evolution-fcdb82a93ae7cd8ef6bc7252f77b8af8afb98b13.tar.xz
gsoc2013-evolution-fcdb82a93ae7cd8ef6bc7252f77b8af8afb98b13.tar.zst
gsoc2013-evolution-fcdb82a93ae7cd8ef6bc7252f77b8af8afb98b13.zip
Only set view ID if we have an instance.
2003-01-14 Hans Petter Jansson <hpj@ximian.com> * gui/gnome-cal.c (set_view): Only set view ID if we have an instance. svn path=/trunk/; revision=19459
-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)