[gnome-music] toolbar: Improve search + back button behaviour in subview
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music] toolbar: Improve search + back button behaviour in subview
- Date: Mon, 16 Jan 2017 09:43:51 +0000 (UTC)
commit 8072ea1023a017c9b345a3595b1cfcf6ae91de29
Author: theawless <thawless gmail com>
Date: Sat Jan 14 02:06:28 2017 +0530
toolbar: Improve search + back button behaviour in subview
The one album view subview of the album mainview did not dismiss search
when closed with the backbutton in the titlebar, inconsistent with how
the mainviews work in conjunction with search. In line with the main
views, the back button now dismisses the search if it's open and returns
to the main view.
https://bugzilla.gnome.org/show_bug.cgi?id=777235
gnomemusic/toolbar.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gnomemusic/toolbar.py b/gnomemusic/toolbar.py
index 85eb999..35a4432 100644
--- a/gnomemusic/toolbar.py
+++ b/gnomemusic/toolbar.py
@@ -137,6 +137,7 @@ class Toolbar(GObject.GObject):
else:
self._search_button.set_visible(True)
+ self.searchbar.show_bar(False)
@log
def set_state(self, state, btn=None):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]