[gnome-clocks] alarm: allow SetupDialog response when changing between AM/PM



commit e91526b9f8625f29f44ab26af7d886bd8e841192
Author: Felipe Borges <felipeborges gnome org>
Date:   Fri Jun 10 15:04:12 2016 +0200

    alarm: allow SetupDialog response when changing between AM/PM
    
    https://bugzilla.gnome.org/show_bug.cgi?id=767494

 src/alarm.vala |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/alarm.vala b/src/alarm.vala
index 790bd10..fe792b5 100644
--- a/src/alarm.vala
+++ b/src/alarm.vala
@@ -340,6 +340,9 @@ private class SetupDialog : Gtk.Dialog {
 
         format  = Utils.WallClock.get_default ().format;
         am_pm_button = new AmPmToggleButton ();
+        am_pm_button.clicked.connect (() => {
+          avoid_duplicate_alarm ();
+        });
 
         if (format == Utils.WallClock.Format.TWENTYFOUR) {
             h_spinbutton.set_range (0, 23);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]