aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarry Lu <harry.lu@sun.com>2005-08-04 18:17:43 +0800
committerHarry Lu <haip@src.gnome.org>2005-08-04 18:17:43 +0800
commitcaaabc21a185dfd4b96e0f07667cf44078f365d9 (patch)
treed406511d3345da36b955ae8ef84480528b96de7c
parentb7b5fab4fc6f14c509c1ffcc7ce0c8a34b5e0ebb (diff)
downloadgsoc2013-evolution-caaabc21a185dfd4b96e0f07667cf44078f365d9.tar.gz
gsoc2013-evolution-caaabc21a185dfd4b96e0f07667cf44078f365d9.tar.zst
gsoc2013-evolution-caaabc21a185dfd4b96e0f07667cf44078f365d9.zip
Fix for #312447.
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. svn path=/trunk/; revision=29986
-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);
}
}