GNOME Bugzilla – Bug 730205
AttributeError: 'Stack' object has no attribute 'get_child_by_name'
Last modified: 2014-05-22 16:36:33 UTC
Created attachment 276611 [details] output of gnome-music -d How to reproduce: * Launch gnome-music 3.13.2 (git 7e02023c) * Type a band name (search field appears and contains the band name) * Wait a short time Expected result: albums by that band are displayed Actual result: gnome-music crashes with this stack trace: Traceback (most recent call last):
+ Trace 233606
retval = fn(*v, **k)
view = stack.get_child_by_name('search')
Full debug log attached. Using Ubuntu 14.04 which still uses Gtk 3.10.
get_child_by_name was introduced in 3.12 only, we should find a way to get view in 3.10 compatible way
Created attachment 276614 [details] [review] Possible fix [I hope I copied the change correctly from /usr/lib/… where I tested this to my git checkout of gnome-music] This works, but there's a slight change in semantics. If the search string is "", the set_search_text method of the Search view is not called.
(In reply to comment #2) > This works, but there's a slight change in semantics. If the search string is > "", the set_search_text method of the Search view is not called. Right, that is intended - empty search should not be executed, as it will be way too slow on remote sources Thanks, pushed as https://git.gnome.org/browse/gnome-music/commit/?id=3582edb
Thanks! git master works for me. *closing*