From 864ab0d253bf176f999792bf67bd590a37a9883b Mon Sep 17 00:00:00 2001 From: Suman Manjunath Date: Thu, 17 Jan 2008 08:42:24 +0000 Subject: Fix for bug #426159 (Allow users to snooze for 1+ hour 0 minutes) svn path=/trunk/; revision=34843 --- calendar/ChangeLog | 8 ++++++++ calendar/gui/alarm-notify/alarm-notify-dialog.c | 4 ++++ calendar/gui/alarm-notify/alarm-notify.glade | 2 +- 3 files changed, 13 insertions(+), 1 deletion(-) (limited to 'calendar') diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 5a227db79a..11dcd44688 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,11 @@ +2008-01-17 Suman Manjunath + + ** Fix for bug #426159 + + * gui/alarm-notify/alarm-notify-dialog.c: (snooze_pressed_cb): + * gui/alarm-notify/alarm-notify.glade: Allow users to snooze for + 1+ hour 0 minutes. + 2008-01-15 Milan Crha ** Fix for bug #333695 diff --git a/calendar/gui/alarm-notify/alarm-notify-dialog.c b/calendar/gui/alarm-notify/alarm-notify-dialog.c index 7022c389be..982b859547 100644 --- a/calendar/gui/alarm-notify/alarm-notify-dialog.c +++ b/calendar/gui/alarm-notify/alarm-notify-dialog.c @@ -175,6 +175,8 @@ edit_pressed_cb (GtkButton *button, gpointer user_data) (* funcinfo->func) (ALARM_NOTIFY_EDIT, -1, funcinfo->func_data); } +#define DEFAULT_SNOOZE_MINS 5 + static void snooze_pressed_cb (GtkButton *button, gpointer user_data) { @@ -194,6 +196,8 @@ snooze_pressed_cb (GtkButton *button, gpointer user_data) snooze_timeout = gtk_spin_button_get_value_as_int (GTK_SPIN_BUTTON (an->snooze_time_min)); snooze_timeout += 60 * (gtk_spin_button_get_value_as_int (GTK_SPIN_BUTTON (an->snooze_time_hrs))); + if (!snooze_timeout) + snooze_timeout = DEFAULT_SNOOZE_MINS; (* funcinfo->func) (ALARM_NOTIFY_SNOOZE, snooze_timeout, funcinfo->func_data); } diff --git a/calendar/gui/alarm-notify/alarm-notify.glade b/calendar/gui/alarm-notify/alarm-notify.glade index e6172caca4..539bd66269 100644 --- a/calendar/gui/alarm-notify/alarm-notify.glade +++ b/calendar/gui/alarm-notify/alarm-notify.glade @@ -251,7 +251,7 @@ GTK_UPDATE_ALWAYS False False - 5 1 59 1 10 10 + 5 0 59 1 10 10 0 -- cgit v1.2.3