[gnome-clocks/gnome-3-20] alarm: allow SetupDialog response when changing name of alarm



commit c0afcc68d73caec72ece24c3a8bddbd8a21d8932
Author: Felipe Borges <felipeborges gnome org>
Date:   Fri Jun 10 14:07:16 2016 +0200

    alarm: allow SetupDialog response when changing name of alarm
    
    https://bugzilla.gnome.org/show_bug.cgi?id=767201

 data/ui/alarmsetupdialog.ui |    1 +
 src/alarm.vala              |    5 +++++
 2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/data/ui/alarmsetupdialog.ui b/data/ui/alarmsetupdialog.ui
index a27f926..09193da 100644
--- a/data/ui/alarmsetupdialog.ui
+++ b/data/ui/alarmsetupdialog.ui
@@ -253,6 +253,7 @@
                     <property name="can_focus">True</property>
                     <property name="invisible_char">●</property>
                     <property name="activates_default">True</property>
+                    <signal name="changed" handler="entry_changed" object="ClocksAlarmSetupDialog" 
swapped="no"/>
                   </object>
                   <packing>
                     <property name="left_attach">1</property>
diff --git a/src/alarm.vala b/src/alarm.vala
index dde81f7..790bd10 100644
--- a/src/alarm.vala
+++ b/src/alarm.vala
@@ -448,6 +448,11 @@ private class SetupDialog : Gtk.Dialog {
     }
 
     [GtkCallback]
+    private void entry_changed (Gtk.Editable editable) {
+        avoid_duplicate_alarm ();
+    }
+
+    [GtkCallback]
     private void spinbuttons_changed (Gtk.SpinButton spin_button) {
         avoid_duplicate_alarm ();
     }


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