[gnome-clocks] Make sure we use the bold label at startup
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-clocks] Make sure we use the bold label at startup
- Date: Sat, 17 Nov 2012 15:22:14 +0000 (UTC)
commit 3a3d9ffbe8bb152b6a40df553d267f7d5ec6c5fb
Author: Paolo Borelli <pborelli gnome org>
Date: Sat Nov 17 16:21:36 2012 +0100
Make sure we use the bold label at startup
gnomeclocks/app.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gnomeclocks/app.py b/gnomeclocks/app.py
index 2fc20c7..cabb29d 100644
--- a/gnomeclocks/app.py
+++ b/gnomeclocks/app.py
@@ -171,7 +171,10 @@ class ClockButton(Gtk.RadioButton):
self.bold_label.set_markup("<b>%s</b>" % text)
ClockButton._size_group.add_widget(self.label)
ClockButton._size_group.add_widget(self.bold_label)
- self.add(self.label)
+ if self.get_active():
+ self.add(self.bold_label)
+ else:
+ self.add(self.label)
self.set_alignment(0.5, 0.5)
self.set_size_request(100, 34)
self.get_style_context().add_class('linked')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]