# HG changeset patch # User Christian Hammond # Date 1080615607 0 # Node ID 4cfb32f78d71dfbc51c11fc46cacccd27323b49e # Parent c1e44e6f9cb11badd930090bbe55c534a5213ac3 [gaim-migrate @ 9260] Hitting enter in a multi-field request dialog when a textfield has the focus no longer ignores the changed text in the textfield. Patch by Gary Kramlich. Thanks! committer: Tailor Script diff -r c1e44e6f9cb1 -r 4cfb32f78d71 ChangeLog --- a/ChangeLog Mon Mar 29 23:19:11 2004 +0000 +++ b/ChangeLog Tue Mar 30 03:00:07 2004 +0000 @@ -59,6 +59,9 @@ consideration. * Minor tweaks to the list box in the multi-field request dialogs so they work without a label and scrollbar (Pekka Riikonen) + * Hitting enter in a multi-field request dialog when a textfield has + the focus no longer ignores the changed text in the textfield + (Gary Kramlich) * The Disconnect dialog no longer raises and gains focus each time a disconnected account is added (Ka-Hing Cheung) * Gadu-Gadu might actually connect again (Ignacy Gawedzki) diff -r c1e44e6f9cb1 -r 4cfb32f78d71 src/gtkrequest.c --- a/src/gtkrequest.c Mon Mar 29 23:19:11 2004 +0000 +++ b/src/gtkrequest.c Tue Mar 30 03:00:07 2004 +0000 @@ -188,6 +188,9 @@ static void multifield_ok_cb(GtkWidget *button, GaimGtkRequestData *data) { + if (!GTK_WIDGET_HAS_FOCUS(button)) + gtk_widget_grab_focus(button); + if (data->cbs[0] != NULL) ((GaimRequestFieldsCb)data->cbs[0])(data->user_data, data->u.multifield.fields);