[gnome-clocks] Fix start timer button styling
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-clocks] Fix start timer button styling
- Date: Thu, 16 Aug 2012 23:29:06 +0000 (UTC)
commit 0d9efed18cf18509517482a7de6a5d50d721c695
Author: Paolo Borelli <pborelli gnome org>
Date: Fri Aug 17 01:02:19 2012 +0200
Fix start timer button styling
Apply "clocks-gp" class to the start timer button only when sensitive
gnomeclocks/timer.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gnomeclocks/timer.py b/gnomeclocks/timer.py
index 8c1e543..80b9d4b 100644
--- a/gnomeclocks/timer.py
+++ b/gnomeclocks/timer.py
@@ -190,8 +190,10 @@ class TimerWelcomeScreen (Gtk.Box):
seconds = self.seconds.get_value()
if hours == 0 and minutes == 0 and seconds == 0:
self.startButton.set_sensitive(False)
+ self.startButton.get_style_context ().remove_class ("clocks-go")
else:
self.startButton.set_sensitive(True)
+ self.startButton.get_style_context ().add_class ("clocks-go")
def _on_start_clicked(self, data):
if self.timer.state == 0:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]