changeset 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 c1e44e6f9cb1
children 0e65de3b180f
files ChangeLog src/gtkrequest.c
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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)
--- 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);