[gnome-clocks] Rename variable for clarity



commit 377363d93d0e5a39794f02c4849008b298bf02e5
Author: Paolo Borelli <pborelli gnome org>
Date:   Thu Aug 15 09:24:43 2013 +0200

    Rename variable for clarity

 data/ui/timer.ui |    6 +++---
 src/timer.vala   |    8 ++++----
 2 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/data/ui/timer.ui b/data/ui/timer.ui
index 59476bd..6f3c419 100644
--- a/data/ui/timer.ui
+++ b/data/ui/timer.ui
@@ -170,7 +170,7 @@
     <property name="row_spacing">48</property>
     <property name="column_spacing">24</property>
     <child>
-      <object class="GtkLabel" id="time_label">
+      <object class="GtkLabel" id="countdown_label">
         <property name="visible">True</property>
         <property name="can_focus">False</property>
         <property name="halign">center</property>
@@ -240,7 +240,7 @@
     <widgets>
       <widget name="grid_spinbuttons"/>
       <widget name="start_button"/>
-      <widget name="time_label"/>
+      <widget name="countdown_label"/>
       <widget name="button_grid"/>
     </widgets>
   </object>
@@ -248,7 +248,7 @@
     <property name="mode">vertical</property>
     <widgets>
       <widget name="grid_spinbuttons"/>
-      <widget name="time_label"/>
+      <widget name="countdown_label"/>
     </widgets>
   </object>
   <object class="GtkSizeGroup" id="sizegroup3">
diff --git a/src/timer.vala b/src/timer.vala
index 72f5c4f..2a85082 100644
--- a/src/timer.vala
+++ b/src/timer.vala
@@ -41,7 +41,7 @@ public class MainPanel : Gtk.Stack, Clocks.Clock {
     private Gtk.SpinButton s_spinbutton;
     private Gtk.Button start_button;
     private Gtk.Widget countdown_panel;
-    private Gtk.Label time_label;
+    private Gtk.Label countdown_label;
     private Gtk.Button left_button;
     private Gtk.Button right_button;
     private double span;
@@ -83,7 +83,7 @@ public class MainPanel : Gtk.Stack, Clocks.Clock {
         });
 
         countdown_panel = builder.get_object ("countdown_panel") as Gtk.Widget;
-        time_label = builder.get_object ("time_label") as Gtk.Label;
+        countdown_label = builder.get_object ("countdown_label") as Gtk.Label;
         left_button = builder.get_object ("left_button") as Gtk.Button;
         right_button = builder.get_object ("right_button") as Gtk.Button;
 
@@ -214,7 +214,7 @@ public class MainPanel : Gtk.Stack, Clocks.Clock {
     }
 
     private void update_countdown (double t) {
-        if (time_label.get_mapped ()) {
+        if (countdown_label.get_mapped ()) {
             // Math.ceil() because we count backwards:
             // with 0.3 seconds we want to show 1 second remaining,
             // with 59.2 seconds we want to show 1 minute, etc
@@ -231,7 +231,7 @@ public class MainPanel : Gtk.Stack, Clocks.Clock {
     private void update_countdown_label (int h, int m, int s) {
         // Note that the format uses unicode RATIO character
         // We also prepend the LTR mark to make sure text is always in this direction
-        time_label.set_text ("%02i\xE2\x80\x8E∶%02i\xE2\x80\x8E∶%02i".printf (h, m, s));
+        countdown_label.set_text ("%02i\xE2\x80\x8E∶%02i\xE2\x80\x8E∶%02i".printf (h, m, s));
     }
 
     public override void grab_focus () {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]