aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
Diffstat (limited to 'calendar')
-rw-r--r--calendar/ChangeLog9
-rw-r--r--calendar/gui/gnome-cal.c13
2 files changed, 22 insertions, 0 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 79bff55298..110393914e 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,12 @@
+2005-08-03 Harry Lu <harry.lu@sun.com>
+
+ Fix for #312447.
+
+ * gui/gnome-cal.c: (notify_selected_time_changed): new function
+ to emit "selected_time_changed" signal for all views.
+ (gnome_calendar_goto_date): call notify_selected_time_changed
+ after date changing.
+
2005-08-03 Chenthill Palanisamy <pchenthill@novell.com>
Fixes #309601
diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c
index c5929aff02..b32d140da7 100644
--- a/calendar/gui/gnome-cal.c
+++ b/calendar/gui/gnome-cal.c
@@ -1667,6 +1667,18 @@ gnome_calendar_destroy (GtkObject *object)
}
static void
+notify_selected_time_changed (GnomeCalendar *gcal)
+{
+ GnomeCalendarPrivate *priv;
+ int i;
+
+ priv = gcal->priv;
+ for (i = 0; i < GNOME_CAL_LAST_VIEW; i++) {
+ g_signal_emit_by_name (priv->views[i], "selected_time_changed");
+ }
+}
+
+static void
gnome_calendar_goto_date (GnomeCalendar *gcal,
GnomeCalendarGotoDateType goto_date)
{
@@ -1731,6 +1743,7 @@ gnome_calendar_goto_date (GnomeCalendar *gcal,
update_view_times (gcal, new_time);
gnome_calendar_update_date_navigator (gcal);
gnome_calendar_notify_dates_shown_changed (gcal);
+ notify_selected_time_changed (gcal);
}
}