[gnome-clocks] Alarms: do not notify active if it did not change



commit 6fe3234374ed15ab55d4bf2afe81ca9d65d32f12
Author: Paolo Borelli <pborelli gnome org>
Date:   Sat Apr 29 15:39:57 2017 +0200

    Alarms: do not notify active if it did not change

 src/alarm.vala |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/alarm.vala b/src/alarm.vala
index 11a8c55..bf5490b 100644
--- a/src/alarm.vala
+++ b/src/alarm.vala
@@ -73,6 +73,7 @@ private class Item : Object, ContentItem, ContentThumb {
          }
     }
 
+    [CCode (notify = false)]
     public bool active {
         get {
             return _active;
@@ -86,6 +87,7 @@ private class Item : Object, ContentItem, ContentThumb {
                 } else if (state == State.RINGING) {
                     stop ();
                 }
+                notify_property ("active");
             }
         }
     }


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