[gnome-clocks] Properly update start button when pressing reset
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-clocks] Properly update start button when pressing reset
- Date: Thu, 16 Aug 2012 23:41:03 +0000 (UTC)
commit 5c928954b66f9bf533d8a4482a669e4180a9ac60
Author: Paolo Borelli <pborelli gnome org>
Date: Fri Aug 17 01:39:34 2012 +0200
Properly update start button when pressing reset
gnomeclocks/clocks.py | 3 +--
gnomeclocks/timer.py | 1 -
2 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/gnomeclocks/clocks.py b/gnomeclocks/clocks.py
index 08bc34d..a025129 100644
--- a/gnomeclocks/clocks.py
+++ b/gnomeclocks/clocks.py
@@ -414,8 +414,7 @@ class Timer (Clock):
self.timer_welcome_screen.hours.set_value(0)
self.timer_welcome_screen.minutes.set_value(0)
self.timer_welcome_screen.seconds.set_value(0)
- self.timer_welcome_screen.startButton.set_sensitive(False)
- self.timer_welcome_screen.hours.down.set_sensitive(False)
+ self.timer_welcome_screen.update_start_button_status()
def start(self):
if self.g_id == 0:
diff --git a/gnomeclocks/timer.py b/gnomeclocks/timer.py
index 80b9d4b..e3bb488 100644
--- a/gnomeclocks/timer.py
+++ b/gnomeclocks/timer.py
@@ -169,7 +169,6 @@ class TimerWelcomeScreen (Gtk.Box):
self.startButton = Gtk.Button()
self.startButton.set_sensitive(False)
self.startButton.set_size_request(200, -1)
- self.startButton.get_style_context ().add_class ("clocks-go")
self.startLabel = Gtk.Label()
self.startLabel.set_markup(TIMER_BUTTON_MARKUP % (_("Start")))
self.startLabel.set_padding (6, 0)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]