[gnome-clocks] Show the right time in the ringing panel when snoozing



commit 52d52d8036fd92938115224bb23582fe6ef7a611
Author: Paolo Borelli <pborelli gnome org>
Date:   Sat Mar 2 11:02:27 2013 +0100

    Show the right time in the ringing panel when snoozing

 src/alarm.vala |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/alarm.vala b/src/alarm.vala
index bd702ce..edb3c52 100644
--- a/src/alarm.vala
+++ b/src/alarm.vala
@@ -453,7 +453,11 @@ private class RingingPanel : Gtk.EventBox {
 
     public void update () {
         if (alarm != null) {
-            time_label.set_text (alarm.time_label);
+            if (alarm.state == Item.State.SNOOZING) {
+                time_label.set_text (alarm.snooze_time_label);
+            } else {
+                time_label.set_text (alarm.time_label);
+            }
         }
     }
 }


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