[gnome-weather] Fixup time label addition



commit a07d99beee6c0c76867b1a8c5c6ee44b03600e18
Author: Giovanni Campagna <gcampagna src gnome org>
Date:   Tue Apr 1 23:09:45 2014 +0200

    Fixup time label addition
    
    It was part of the review, and it was fixed in the later patch, but I
    had an old copy.

 src/city.js   |    6 +++---
 src/window.js |    4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/city.js b/src/city.js
index fc19348..6ab5122 100644
--- a/src/city.js
+++ b/src/city.js
@@ -192,7 +192,7 @@ const WeatherView = new Lang.Class({
         this.visible_child_name = 'info';
     },
 
-    _connectClock: function() {
+    connectClock: function() {
         this._wallClock = new Gnome.WallClock();
         this._clockHandlerId = this._wallClock.connect('notify::clock', Lang.bind(this, this._updateTime));
     },
@@ -206,12 +206,12 @@ const WeatherView = new Lang.Class({
             let location = this._info.location;
             let tz = GLib.TimeZone.new(location.get_timezone().get_tzid());
             let dt = GLib.DateTime.new_now(tz);
-            return dt.format("%H:%M");
+            return dt.format(_("%H:%M"));
         }
         return null;
     },
 
-    _disconnectClock: function() {
+    disconnectClock: function() {
         this._wallClock.disconnect(this._clockHandlerId);
     }
 });
diff --git a/src/window.js b/src/window.js
index 9c9c49c..42f67db 100644
--- a/src/window.js
+++ b/src/window.js
@@ -273,7 +273,7 @@ const MainWindow = new Lang.Class({
 
     showInfo: function(info) {
         this._cityView.info = info;
-        this._cityView._connectClock();
+        this._cityView.connectClock();
         this._stack.set_visible_child(this._cityView);
         this._goToPage(Page.CITY);
     },
@@ -281,7 +281,7 @@ const MainWindow = new Lang.Class({
     _goWorld: function() {
         this._stack.set_visible_child(this._worldView);
         this._goToPage(Page.WORLD);
-        this._cityView._disconnectClock();
+        this._cityView.disconnectClock();
     },
 
     _newLocation: function() {


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