[clocks] Fix Stopwatch reset label,Bug 680607
- From: Seif Lotfy <seiflotfy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clocks] Fix Stopwatch reset label,Bug 680607
- Date: Mon, 30 Jul 2012 13:41:43 +0000 (UTC)
commit a759a4aa44fc80921844312dcf4ededa1bb90ea4
Author: Eslam Mostafa <cseslam gmail com>
Date: Sat Jul 28 21:23:30 2012 +0200
Fix Stopwatch reset label,Bug 680607
Signed-off-by: Seif Lotfy <seif lotfy com>
clocks.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/clocks.py b/clocks.py
index 81d1746..efdb756 100644
--- a/clocks.py
+++ b/clocks.py
@@ -280,6 +280,7 @@ class Stopwatch (Clock):
self.leftLabel.set_markup (STOPWATCH_BUTTON_MARKUP%("Stop"))
self.rightLabel.set_markup (STOPWATCH_BUTTON_MARKUP%("Lap"))
self.leftButton.get_style_context ().add_class ("clocks-stop")
+ self.rightButton.set_sensitive(True)
elif self.state == 1:
self.state = 2
self.stop()
@@ -293,11 +294,12 @@ class Stopwatch (Clock):
pass
if self.state == 2:
self.state = 0
- self.time_diff = 0
+ self.time_diff = 0
self.leftLabel.set_markup (STOPWATCH_BUTTON_MARKUP%("Start"))
self.leftButton.get_style_context ().add_class ("clocks-start")
#self.rightButton.get_style_context ().add_class ("clocks-lap")
self.stopwatchLabel.set_markup (STOPWATCH_LABEL_MARKUP%(0,0,0))
+ self.rightButton.set_sensitive(False)
def start(self):
if self.g_id == 0:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]