Mercurial > pidgin
comparison 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 |
comparison
equal
deleted
inserted
replaced
8520:c1e44e6f9cb1 | 8521:4cfb32f78d71 |
---|---|
186 } | 186 } |
187 | 187 |
188 static void | 188 static void |
189 multifield_ok_cb(GtkWidget *button, GaimGtkRequestData *data) | 189 multifield_ok_cb(GtkWidget *button, GaimGtkRequestData *data) |
190 { | 190 { |
191 if (!GTK_WIDGET_HAS_FOCUS(button)) | |
192 gtk_widget_grab_focus(button); | |
193 | |
191 if (data->cbs[0] != NULL) | 194 if (data->cbs[0] != NULL) |
192 ((GaimRequestFieldsCb)data->cbs[0])(data->user_data, | 195 ((GaimRequestFieldsCb)data->cbs[0])(data->user_data, |
193 data->u.multifield.fields); | 196 data->u.multifield.fields); |
194 | 197 |
195 gaim_request_close(GAIM_REQUEST_FIELDS, data); | 198 gaim_request_close(GAIM_REQUEST_FIELDS, data); |