[gnome-clocks] Do not use the localized day labels for the logic
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-clocks] Do not use the localized day labels for the logic
- Date: Thu, 30 Aug 2012 20:04:08 +0000 (UTC)
commit 9726ad7eed55896c7113c51dec6a76e92761a1df
Author: Paolo Borelli <pborelli gnome org>
Date: Thu Aug 30 22:02:15 2012 +0200
Do not use the localized day labels for the logic
gnomeclocks/alarm.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gnomeclocks/alarm.py b/gnomeclocks/alarm.py
index 532a552..c5232a3 100644
--- a/gnomeclocks/alarm.py
+++ b/gnomeclocks/alarm.py
@@ -273,7 +273,8 @@ class AlarmDialog(Gtk.Dialog):
box.get_style_context().add_class("linked")
for day in ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]:
btn = Gtk.ToggleButton(label=_(day))
- if btn.get_label()[:2] in repeat:
+ btn.data = day[:2].upper()
+ if btn.data in repeat:
btn.set_active(True)
box.pack_start(btn, True, True, 0)
self.day_buttons.append(btn)
@@ -306,7 +307,7 @@ class AlarmDialog(Gtk.Dialog):
repeat = []
for btn in self.day_buttons:
if btn.get_active():
- repeat.append(btn.get_label()[:2])
+ repeat.append(btn.data)
alarm_item = AlarmItem(name, repeat, h, m, p)
return alarm_item
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]