GNOME Bugzilla – Bug 695761
Pressing enter in "New" dialog should select first option
Last modified: 2013-11-03 11:35:39 UTC
Basically: - Press "New" - Type "mad" - Madrid appears as only option - Pressing Enter should do the right thing
Created attachment 239010 [details] [review] GWeatherLocationEntry: autocomplete on activate Extend GWeatherLocationEntry so that when only one completion is possible, we insert it when pressing enter, and then propagate the activation up. At the same time, and without breaking backward compatibility of documented API, add a private structure.
Created attachment 239011 [details] [review] New dialog: fix activation behavior If we don't set the default response, pressing enter has no effect. At the same time, convert some property setters to JS conventions.
I attached the patches here if you want to try them. First one is on libgweather, second one on gnome-weather. Anyway, I'll merge them to master when 3.8 is out.
Attachment 239011 [details] pushed as 4776cd2 - New dialog: fix activation behavior
This patch assumes that get_cells() returns non-NULL, which is not true anymore with the fix to bug #635499 in gtk. It's kind of a hack anyway. I propose reverting it and setting "inline-completion" to TRUE and "popup-single-match" to FALSE. That should have the desired effect and will also work when hitting enter when multiple locations are in the popup.