[gnome-music/freeze-break: 9/107] Close search toolbar on switching views



commit cc4ba2347a6a7c15d575745f86d732724692206e
Author: Vadim Rutkovsky <vrutkovs redhat com>
Date:   Tue Aug 6 16:42:13 2013 +0200

    Close search toolbar on switching views

 gnomemusic/window.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gnomemusic/window.py b/gnomemusic/window.py
index fadd5fe..46fffd1 100644
--- a/gnomemusic/window.py
+++ b/gnomemusic/window.py
@@ -155,6 +155,7 @@ class Window(Gtk.ApplicationWindow):
         if stack.get_visible_child() == self.views[1]:
             stack.get_visible_child().stack.set_visible_child_name('dummy')
             stack.get_visible_child().stack.set_visible_child_name('artists')
+        self.toolbar.searchbar.set_property('search-mode-enabled', False)
 
     def _toggle_view(self, btn, i):
         self._stack.set_visible_child(self.views[i])


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