After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 555729 - GtkAssistant doesn't designate any of its buttons as default widget
GtkAssistant doesn't designate any of its buttons as default widget
Status: RESOLVED DUPLICATE of bug 527583
Product: gtk+
Classification: Platform
Component: Widget: Other
2.12.x
Other All
: Normal minor
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2008-10-09 20:53 UTC by Philip Chimento
Modified: 2009-07-16 13:50 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22



Description Philip Chimento 2008-10-09 20:53:48 UTC
If a user types text into a GtkEntry on a GtkAssistant page, and then presses Enter to continue to the next page, nothing happens. I suggest that GtkAssistant should designate one appropriate button as its default widget, so that the programmer can use the "activates-default" property of the GtkEntry. I took a look at the source, and it seems that the following steps would need to be taken in gtkassistant.c:

1. In gtk_assistant_init(), the GTK_CAN_DEFAULT flag should be set on any appropriate buttons.
2. In set_assistant_buttons_state() (I think), gtk_window_set_default(GTK_WINDOW(assistant), assistant->whatever_button) should be called on one appropriate button in each configuration. (But only if the programmer hasn't set their own default widget? Not sure how to solve this as there is no gtk_window_get_default()).
3. In compute_last_button_state(), perhaps the Last button should be the default widget if it is visible?

Other information:
Comment 1 Bastien Nocera 2009-07-16 13:50:28 UTC
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.


*** This bug has been marked as a duplicate of 527583 ***