aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/alarm-notify
diff options
context:
space:
mode:
authorSuman Manjunath <msuman@src.gnome.org>2008-01-17 16:42:24 +0800
committerSuman Manjunath <msuman@src.gnome.org>2008-01-17 16:42:24 +0800
commit864ab0d253bf176f999792bf67bd590a37a9883b (patch)
tree1526dd0c92b4a0d4a1c64e7a7d645037ac291e20 /calendar/gui/alarm-notify
parente2e3ab5bfbeab96ce47649707f110d49f035dc30 (diff)
downloadgsoc2013-evolution-864ab0d253bf176f999792bf67bd590a37a9883b.tar
gsoc2013-evolution-864ab0d253bf176f999792bf67bd590a37a9883b.tar.gz
gsoc2013-evolution-864ab0d253bf176f999792bf67bd590a37a9883b.tar.bz2
gsoc2013-evolution-864ab0d253bf176f999792bf67bd590a37a9883b.tar.lz
gsoc2013-evolution-864ab0d253bf176f999792bf67bd590a37a9883b.tar.xz
gsoc2013-evolution-864ab0d253bf176f999792bf67bd590a37a9883b.tar.zst
gsoc2013-evolution-864ab0d253bf176f999792bf67bd590a37a9883b.zip
Fix for bug #426159 (Allow users to snooze for 1+ hour 0 minutes)
svn path=/trunk/; revision=34843
Diffstat (limited to 'calendar/gui/alarm-notify')
-rw-r--r--calendar/gui/alarm-notify/alarm-notify-dialog.c4
-rw-r--r--calendar/gui/alarm-notify/alarm-notify.glade2
2 files changed, 5 insertions, 1 deletions
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 @@
<property name="update_policy">GTK_UPDATE_ALWAYS</property>
<property name="snap_to_ticks">False</property>
<property name="wrap">False</property>
- <property name="adjustment">5 1 59 1 10 10</property>
+ <property name="adjustment">5 0 59 1 10 10</property>
</widget>
<packing>
<property name="padding">0</property>