[gnome-weather] Add a button to refresh the view



commit 2e493f6fa3a26d9a0aa054e0994ec0daa5de6209
Author: Giovanni Campagna <gcampagna src gnome org>
Date:   Sat Feb 23 04:13:09 2013 +0100

    Add a button to refresh the view

 src/window.js |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/window.js b/src/window.js
index 88ca011..62de72e 100644
--- a/src/window.js
+++ b/src/window.js
@@ -60,9 +60,14 @@ const MainWindow = new Lang.Class({
 
         this._header = new Gd.HeaderBar({ title: makeTitle(this._location),
                                           hexpand: true });
+        grid.add(this._header);
+
         this._search = new Gd.HeaderToggleButton({ symbolic_icon_name: 'edit-find-symbolic' });
         this._header.pack_end(this._search);
-        grid.add(this._header);
+
+        let refresh = new Gd.HeaderSimpleButton({ symbolic_icon_name: 'view-refresh-symbolic' });
+        refresh.connect('clicked', Lang.bind(this, this.update));
+        this._header.pack_end(refresh);
 
         this._locationEntry = new GWeather.LocationEntry({ top: this._world,
                                                            location: this._location,


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