[gnome-weather] World: show "World Weather" as a title when no city is selected



commit 7be40fd16f4fab30595427d8479766ee7f1a4c30
Author: Giovanni Campagna <gcampagna src gnome org>
Date:   Fri Dec 13 17:02:02 2013 +0100

    World: show "World Weather" as a title when no city is selected
    
    The header bar should never be empty, so add some filler text for
    the default view.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=720322

 src/window.js |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/window.js b/src/window.js
index 778520f..00b8944 100644
--- a/src/window.js
+++ b/src/window.js
@@ -108,6 +108,9 @@ const MainWindow = new Lang.Class({
         let grid = builder.get_object('main-panel');
         this._header = builder.get_object('header-bar');
         this.set_titlebar(this._header);
+        let [title, subtitle] = this._getTitle();
+        this._header.title = title;
+        this._header.subtitle = subtitle;
 
         let newButton = builder.get_object('new-button');
         this._pageWidgets[Page.WORLD].push(newButton);
@@ -205,7 +208,7 @@ const MainWindow = new Lang.Class({
 
     _getTitle: function() {
         if (this._currentPage == Page.WORLD)
-            return ['', null];
+            return [_("World Weather"), null];
 
         let location = this._cityView.info.location;
         let city = location;


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