GNOME Bugzilla – Bug 742695
type to search in preferences: char doesn't appear in search on keypress
Last modified: 2015-01-11 04:00:35 UTC
Steps to reproduce: * open preferences * press 'o' Expected results: search box opens with an o in it Actual results: search box opens but is empty
Created attachment 294248 [details] [review] bugfix
LGTM, pushed.
Great, one issue though: if I press esc to dismiss the search bar and it just happens that the search bar isn't focused because I browsed the search, the whole dialog gets closed insead of just the search bar. (I'd like the latter behavior better.)
Created attachment 294255 [details] [review] fix #2 You are right, here is a solution (I admit, the code does not look nice - but it works) Somehow gtk_search_bar_handle_event does not propagate the event to the searchbar when it is already enabled, this fact makes the code a bit ugly.
Review of attachment 294255 [details] [review]: I could see this getting unruly, but I think this feature needs an abstraction upstream in Gtk. So until that happens, I'm okay with this.
This looks like it fixes 742694 too.