[gnome-clocks] Fix a couple of issue in the last commit



commit 23801b0e2a46a66683bb820b12b1e93dbfcd92e2
Author: Paolo Borelli <pborelli gnome org>
Date:   Fri Aug 31 13:52:37 2012 +0200

    Fix a couple of issue in the last commit

 gnomeclocks/alarm.py |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/gnomeclocks/alarm.py b/gnomeclocks/alarm.py
index 8ca1570..4e7e7f7 100644
--- a/gnomeclocks/alarm.py
+++ b/gnomeclocks/alarm.py
@@ -378,6 +378,10 @@ class Alarm(Clock):
         i = self.alarms.index(old_alarm)
         self.alarms[i] = new_alarm
         self.storage.save(self.alarms)
+        self.iconview.unselect_all()
+        self.liststore.clear()
+        self.load_alarms()
+        self.notify("can-select")
 
     def delete_alarms(self, alarms):
         for a in alarms:
@@ -469,7 +473,7 @@ class StandaloneAlarm(Gtk.Box):
         self.alert.stop()
 
     def get_name(self):
-        name = self.alarm.get_alarm_name()
+        name = self.alarm.name
         return GLib.markup_escape_text(name)
 
     def set_ringing(self, show):



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