Mercurial > pidgin
changeset 5835:9a08899192ee
[gaim-migrate @ 6266]
Several fixes in our signal handlers for the multi-field request dialog.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Wed, 11 Jun 2003 22:46:38 +0000 |
parents | 77eba2e68d07 |
children | 09f7f23dc83a |
files | src/gtkrequest.c |
diffstat | 1 files changed, 7 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkrequest.c Wed Jun 11 22:17:48 2003 +0000 +++ b/src/gtkrequest.c Wed Jun 11 22:46:38 2003 +0000 @@ -92,20 +92,24 @@ gaim_request_close(GAIM_REQUEST_INPUT, data); } -static void +static gboolean field_string_focus_out_cb(GtkEntry *entry, GaimRequestField *field) { const char *value = gtk_entry_get_text(entry); gaim_request_field_string_set_value(field, (*value == '\0' ? NULL : value)); + + return FALSE; } -static void +static gboolean field_int_focus_out_cb(GtkEntry *entry, GaimRequestField *field) { gaim_request_field_int_set_value(field, atoi(gtk_entry_get_text(entry))); + + return FALSE; } static void @@ -615,7 +619,7 @@ TRUE, TRUE, 0); gtk_widget_show(radio); - g_signal_connect(G_OBJECT(widget), "toggled", + g_signal_connect(G_OBJECT(radio), "toggled", G_CALLBACK(field_choice_option_cb), field); }