evolution r34843 - in trunk/calendar: . gui/alarm-notify
- From: msuman svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution r34843 - in trunk/calendar: . gui/alarm-notify
- Date: Thu, 17 Jan 2008 08:42:24 +0000 (GMT)
Author: msuman
Date: Thu Jan 17 08:42:24 2008
New Revision: 34843
URL: http://svn.gnome.org/viewvc/evolution?rev=34843&view=rev
Log:
Fix for bug #426159 (Allow users to snooze for 1+ hour 0 minutes)
Modified:
trunk/calendar/ChangeLog
trunk/calendar/gui/alarm-notify/alarm-notify-dialog.c
trunk/calendar/gui/alarm-notify/alarm-notify.glade
Modified: trunk/calendar/gui/alarm-notify/alarm-notify-dialog.c
==============================================================================
--- trunk/calendar/gui/alarm-notify/alarm-notify-dialog.c (original)
+++ trunk/calendar/gui/alarm-notify/alarm-notify-dialog.c Thu Jan 17 08:42:24 2008
@@ -175,6 +175,8 @@
(* 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_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);
}
Modified: trunk/calendar/gui/alarm-notify/alarm-notify.glade
==============================================================================
--- trunk/calendar/gui/alarm-notify/alarm-notify.glade (original)
+++ trunk/calendar/gui/alarm-notify/alarm-notify.glade Thu Jan 17 08:42:24 2008
@@ -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>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]