[gnome-clocks] Alarms: do not notify active if it did not change
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-clocks] Alarms: do not notify active if it did not change
- Date: Sat, 29 Apr 2017 21:52:07 +0000 (UTC)
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]