aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--calendar/ChangeLog5
-rw-r--r--calendar/gui/gnome-cal.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 43dca27fa5..4eae5d4d1d 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,8 @@
+2004-07-02 Rodrigo Moya <rodrigo@novell.com>
+
+ * gui/gnome-cal.c (set_view): update the internal current_view_type
+ field and focus the newly selected view.
+
2004-07-02 Rodney Dawes <dobey@novell.com>
* gui/dialogs/url-editor-dialog.c (get_widgets):
diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c
index b65437a045..0a1a0c8478 100644
--- a/calendar/gui/gnome-cal.c
+++ b/calendar/gui/gnome-cal.c
@@ -1670,8 +1670,10 @@ set_view (GnomeCalendar *gcal, GnomeCalendarViewType view_type, gboolean range_s
}
priv->range_selected = range_selected;
+ priv->current_view_type = view_type;
gal_view_instance_set_current_view_id (priv->view_instance, view_id);
+ focus_current_view (gcal);
}