[gnome-clocks] world: reset header bar title when leaving standalone view



commit d488328cce764c6b6688f9e497c2e1547bea4fba
Author: Ernestas Kulik <ernestask src gnome org>
Date:   Sat Oct 15 10:18:59 2016 +0300

    world: reset header bar title when leaving standalone view
    
    Switching to a standalone view sets the header bar title to the name of
    the location. Leaving the view does not reset the title like it should.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=772677

 src/world.vala |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/world.vala b/src/world.vala
index bde9bdf..90be49b 100644
--- a/src/world.vala
+++ b/src/world.vala
@@ -452,6 +452,8 @@ public class Face : Gtk.Stack, Clocks.Clock {
     public void update_header_bar () {
         switch (header_bar.mode) {
         case HeaderBar.Mode.NORMAL:
+            header_bar.title = _("Clocks");
+            header_bar.subtitle = null;
             new_button.show ();
             content_view.update_header_bar ();
             break;


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