diff src/gtkrequest.c @ 8521:4cfb32f78d71

[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 <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Tue, 30 Mar 2004 03:00:07 +0000
parents f4a878d48254
children 253eb32e344c
line wrap: on
line diff
--- 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);