GNOME Bugzilla – Bug 380848
winicon save plug-in should activate when pressing Enter
Last modified: 2018-05-24 12:05:11 UTC
The windows ico export plugin (*.ico) has the first dropdown widget focused when it opens its dialog. The 'save' button should have focus so that simply pressing 'Enter' will export with the default settings.
All plug-in dialogs focus the first focusable widget. I don't see why the ICO save plug-in should be any different. Do you suggest that we change all plug-ins to move the focus to the confirm button?
Hmm? When I do export to PNG I can just enter, enter, enter and I'm done. If it behaved like the ico plugin, I'd toggle "interlacing (adam7)" on and off.
Created attachment 77478 [details] Ogg Theora recording of the focus issue The PNG export can be survived by pressing Enter to go with the defaults. ICO export cannot.
Well, we never focus the confirm button. But we set it as the dialog's default response widget. We also do this is in the winicon plug-in dialog. The focus is automatically set to the first focusable widget in the dialog. Now if this widgets happens to react to the Enter button, then the default action is not activated. This is the case with the combo-box in the winicon save dialog. I am afraid there is no way to change this behaviour. Closing as NOTABUG.
How does it happen to react to the Enter button? Is this is a gtk bug that it cannot be solved for this particular case? I recall having similar issues with many other dialogs in the past and you guys fixed them.
We fixes this for dialogs that have focus in a GtkEntry. But there's no equivalent to gtk_entry_set_activates_default() for a GtkComboBox. So there's nothing we can do here. Perhaps you should file a bug against GTK+ asking them to add an "activates-default" property to GtkComboBox.
I filed bug #381254 for this issue.
Reopening and changing the summary to something that allows me to keep the report open. The old summary was simply wrong, thus NOTABUG.
Setting to 2.10 as a reminder for myself, there is a GTK+ patch linked that needs to be finished.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gimp/issues/223.