[gnome-music] searchbar: don't use get_child_by_name from gtk 3.12
- From: Vadim Rutkovsky <vrutkovsky src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music] searchbar: don't use get_child_by_name from gtk 3.12
- Date: Mon, 19 May 2014 09:34:13 +0000 (UTC)
commit 3582edb33a37c1d082660410ebb63f7776311042
Author: Florian Will <florian will googlemail com>
Date: Thu May 15 16:54:00 2014 +0000
searchbar: don't use get_child_by_name from gtk 3.12
https://bugzilla.gnome.org/show_bug.cgi?id=730205
gnomemusic/searchbar.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gnomemusic/searchbar.py b/gnomemusic/searchbar.py
index 3eb9955..a545be5 100644
--- a/gnomemusic/searchbar.py
+++ b/gnomemusic/searchbar.py
@@ -262,10 +262,10 @@ class Searchbar(Gd.Revealer):
fields_filter = 'search_all'
stack = self.stack_switcher.get_stack()
- view = stack.get_child_by_name('search')
if search_term != "":
- stack.set_visible_child(view)
- view.set_search_text(search_term, fields_filter)
+ stack.set_visible_child_name('search')
+ view = stack.get_visible_child()
+ view.set_search_text(search_term, fields_filter)
self._dropDownButton.set_active(False)
self.dropdown.set_reveal_child(False)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]