[gnome-clocks] Rename clocks-start style class



commit 886a4f33b6c57095f260807083f3b8ce6f499a37
Author: Allan Day <allanpday gmail com>
Date:   Thu Aug 16 14:17:29 2012 +0100

    Rename clocks-start style class
    
    The clocks-start style class was being used for both the start and
    the continue buttons. Rename the class to clocks-go to reflect this.

 data/gtk-style.css    |    8 ++++----
 gnomeclocks/clocks.py |    8 ++++----
 gnomeclocks/timer.py  |    6 +++---
 3 files changed, 11 insertions(+), 11 deletions(-)
---
diff --git a/data/gtk-style.css b/data/gtk-style.css
index c7f7b24..0e08bc3 100644
--- a/data/gtk-style.css
+++ b/data/gtk-style.css
@@ -1,4 +1,4 @@
- define-color clocks_start_color #006B09;
+ define-color clocks_go_color #006B09;
 @define-color clocks_stop_color #ff0000;
 
 .clocks-toolbar.toolbar {
@@ -11,11 +11,11 @@
     background-color: #f1f2f1
 }
 
-.clocks-start {
+.clocks-go {
     background-image: -gtk-gradient (linear,
                                      left top, left bottom,
-                                     from (@clocks_start_color),
-                                     to (darker (@clocks_start_color)));
+                                     from (@clocks_go_color),
+                                     to (darker (@clocks_go_color)));
     color: #ffffff;
     border-image: none;
     border-width: 0;
diff --git a/gnomeclocks/clocks.py b/gnomeclocks/clocks.py
index 2d01a94..2f16af3 100644
--- a/gnomeclocks/clocks.py
+++ b/gnomeclocks/clocks.py
@@ -270,8 +270,8 @@ class Stopwatch (Clock):
         self.rightLabel = Gtk.Label ()
         self.rightButton.add (self.rightLabel)
         self.rightButton.set_sensitive(False)
-        self.leftButton.get_style_context ().add_class ("clocks-start")
-
+        self.leftButton.get_style_context ().add_class ("clocks-go")
+        #self.rightButton.get_style_context ().add_class ("clocks-lap")
 
         hbox.pack_start (Gtk.Box(), True, False, 0)
         hbox.pack_start (self.leftButton, False, False, 0)
@@ -316,7 +316,7 @@ class Stopwatch (Clock):
             self.leftLabel.set_markup(STOPWATCH_BUTTON_MARKUP % (_("Continue")))
             self.rightLabel.set_markup(STOPWATCH_BUTTON_MARKUP % (_("Reset")))
             self.leftButton.get_style_context ().remove_class ("clocks-stop")
-            self.leftButton.get_style_context ().add_class ("clocks-start")
+            self.leftButton.get_style_context ().add_class ("clocks-go")
 
     def _on_right_button_clicked (self, widget):
         if self.state == Stopwatch.State.RUNNING:
@@ -325,7 +325,7 @@ class Stopwatch (Clock):
             self.state = Stopwatch.State.RESET
             self.time_diff = 0
             self.leftLabel.set_markup(STOPWATCH_BUTTON_MARKUP % (_("Start")))
-            self.leftButton.get_style_context ().add_class ("clocks-start")
+            self.leftButton.get_style_context ().add_class ("clocks-go")
             #self.rightButton.get_style_context ().add_class ("clocks-lap")
             self.stopwatchLabel.set_markup (STOPWATCH_LABEL_MARKUP%(0,0))
             self.rightButton.set_sensitive(False)
diff --git a/gnomeclocks/timer.py b/gnomeclocks/timer.py
index 3a1f3e3..f5e9fb5 100644
--- a/gnomeclocks/timer.py
+++ b/gnomeclocks/timer.py
@@ -136,12 +136,12 @@ class TimerScreen (Gtk.Box):
             self.timer.pause()
             self.leftLabel.set_markup(TIMER_BUTTON_MARKUP % (_("Continue")))
             #self.leftButton.get_style_context ().remove_class ("clocks-stop")
-            self.leftButton.get_style_context ().add_class ("clocks-start")
+            self.leftButton.get_style_context ().add_class ("clocks-go")
         elif self.timer.state == 2: #Continue
             self.timer.state = 1
             self.timer.cont()
             self.leftLabel.set_markup(TIMER_BUTTON_MARKUP % (_("Pause")))
-            self.leftButton.get_style_context ().remove_class ("clocks-start")
+            self.leftButton.get_style_context ().remove_class ("clocks-go")
             #self.leftButton.get_style_context ().add_class ("clocks-lap")
 
 class TimerWelcomeScreen (Gtk.Box):
@@ -173,7 +173,7 @@ 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-start")
+        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]