aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChenthill Palanisamy <pchen@src.gnome.org>2006-01-05 15:48:51 +0800
committerChenthill Palanisamy <pchen@src.gnome.org>2006-01-05 15:48:51 +0800
commitf7b72fea208b2534a877474716806b57c4bf2375 (patch)
treebe5d71b3c46fe8835ba6eeb371749b223a9a48b3
parenta067170c8968f7ef868f197ee2f5206bc2dbb25c (diff)
downloadgsoc2013-evolution-f7b72fea208b2534a877474716806b57c4bf2375.tar
gsoc2013-evolution-f7b72fea208b2534a877474716806b57c4bf2375.tar.gz
gsoc2013-evolution-f7b72fea208b2534a877474716806b57c4bf2375.tar.bz2
gsoc2013-evolution-f7b72fea208b2534a877474716806b57c4bf2375.tar.lz
gsoc2013-evolution-f7b72fea208b2534a877474716806b57c4bf2375.tar.xz
gsoc2013-evolution-f7b72fea208b2534a877474716806b57c4bf2375.tar.zst
gsoc2013-evolution-f7b72fea208b2534a877474716806b57c4bf2375.zip
fixes #216535
svn path=/trunk/; revision=31062
-rw-r--r--calendar/ChangeLog8
-rw-r--r--calendar/gui/dialogs/event-page.c24
2 files changed, 27 insertions, 5 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index f9d85ffc06..4d23ba3faf 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,11 @@
+2006-01-05 Johnny Jacob <johnnyjacob@gmail.com>
+
+ Fixes #216535
+ * gui/dialogs/event-page.c (end_date_changed_cb ): Added. Signal
+ handler for end_time.
+ (start_date_changed_cb) : Added. Changes the end_time according to
+ the duration.
+
2006-01-05 Chenthill Palanisamy <pchenthill@novell.com>
* gui/alarm-notify/alarm-notify-dialog.c:
diff --git a/calendar/gui/dialogs/event-page.c b/calendar/gui/dialogs/event-page.c
index c2c3b11889..514b422878 100644
--- a/calendar/gui/dialogs/event-page.c
+++ b/calendar/gui/dialogs/event-page.c
@@ -2424,19 +2424,33 @@ times_updated (EventPage *epage, gboolean adjust_end_time)
notify_dates_changed (epage, &start_tt, &end_tt);
}
-/* Callback used when the start or end date widgets change. We check that the
+/* Callback used when the start date widget change. We check that the
* start date < end date and we set the "all day event" button as appropriate.
*/
static void
-date_changed_cb (GtkWidget *dedit, gpointer data)
+start_date_changed_cb (GtkWidget *dedit, gpointer data)
{
EventPage *epage;
epage = EVENT_PAGE (data);
- times_updated (epage, dedit == epage->priv->start_time);
+ hour_minute_changed (epage);
+
+ times_updated (epage, TRUE);
}
+/* Callback used when the end date widget change. We check that the
+ * start date < end date and we set the "all day event" button as appropriate.
+ */
+static void
+end_date_changed_cb (GtkWidget *dedit, gpointer data)
+{
+ EventPage *epage;
+
+ epage = EVENT_PAGE (data);
+
+ times_updated (epage, FALSE);
+}
/* Callback used when the start timezone is changed. If sync_timezones is set,
* we set the end timezone to the same value. It also updates the start time
@@ -2727,9 +2741,9 @@ init_widgets (EventPage *epage)
/* Start and end times */
g_signal_connect((priv->start_time), "changed",
- G_CALLBACK (date_changed_cb), epage);
+ G_CALLBACK (start_date_changed_cb), epage);
g_signal_connect((priv->end_time), "changed",
- G_CALLBACK (date_changed_cb), epage);
+ G_CALLBACK (end_date_changed_cb), epage);
/* Categories */
g_signal_connect((priv->categories_btn), "clicked",