GNOME Bugzilla – Bug 154983
Focus is on "new" button by default
Last modified: 2012-01-31 23:16:33 UTC
AisleRiot 2.6.2 (Debian version 1:2.6.2-3) Start the game. Accidently press enter. Result: a new game is started, even if you were winning.
I can't see a clean way to fix this with the gnome_app* functions we currently use. This is probably a good excuse to update the toolbar code to use gtk_toolbar*, I'll try and do it in the 2.9.x cycle.
*** Bug 159175 has been marked as a duplicate of this bug. ***
I have had another look at this. Basically the problem is that GTK doesn't seem to let me not have an active widget. The obvious thing then is to use the drawing area as the active widget and use space/return instead of a click. Unfortunately this requires more code than I am prepared to put in at this stage of the 2.9/2.10 release cycle, so it will have to wait another month for 2.11/2.12. Sorry.
Finally fixed. The call to use is under gtk_window_*, not gtk_widget_* where all the other focus and default behaviour stuff is. Grrr.
This bug is being reassigned to the "general" component so we can close the aisleriot bugzilla component. Apologies for the mass email!