Mercurial > pidgin
comparison src/gtkrequest.c @ 5846:4676b498ff4b
[gaim-migrate @ 6277]
This explains why my data was all corrupted.. Added the missing variable in
the focus-out-event callbacks before the user_data variable :)
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Fri, 13 Jun 2003 08:30:01 +0000 |
parents | 3a5de5b6183d |
children | 059d95c67cda |
comparison
equal
deleted
inserted
replaced
5845:3a5de5b6183d | 5846:4676b498ff4b |
---|---|
91 | 91 |
92 gaim_request_close(GAIM_REQUEST_INPUT, data); | 92 gaim_request_close(GAIM_REQUEST_INPUT, data); |
93 } | 93 } |
94 | 94 |
95 static gboolean | 95 static gboolean |
96 field_string_focus_out_cb(GtkEntry *entry, GaimRequestField *field) | 96 field_string_focus_out_cb(GtkEntry *entry, GdkEventFocus *event, |
97 GaimRequestField *field) | |
97 { | 98 { |
98 const char *value = gtk_entry_get_text(entry); | 99 const char *value = gtk_entry_get_text(entry); |
99 | 100 |
100 gaim_request_field_string_set_value(field, | 101 gaim_request_field_string_set_value(field, |
101 (*value == '\0' ? NULL : value)); | 102 (*value == '\0' ? NULL : value)); |
102 | 103 |
103 return FALSE; | 104 return FALSE; |
104 } | 105 } |
105 | 106 |
106 static gboolean | 107 static gboolean |
107 field_int_focus_out_cb(GtkEntry *entry, GaimRequestField *field) | 108 field_int_focus_out_cb(GtkEntry *entry, GdkEventFocus *event, |
109 GaimRequestField *field) | |
108 { | 110 { |
109 gaim_request_field_int_set_value(field, | 111 gaim_request_field_int_set_value(field, |
110 atoi(gtk_entry_get_text(entry))); | 112 atoi(gtk_entry_get_text(entry))); |
111 | 113 |
112 return FALSE; | 114 return FALSE; |
504 GtkWidget *widget = NULL; | 506 GtkWidget *widget = NULL; |
505 | 507 |
506 field = fl->data; | 508 field = fl->data; |
507 | 509 |
508 type = gaim_request_field_get_type(field); | 510 type = gaim_request_field_get_type(field); |
511 | |
512 gaim_debug(GAIM_DEBUG_MISC, "gtkrequest", | |
513 "type = %d (%d)\n", | |
514 type, field->type); | |
509 | 515 |
510 if (type != GAIM_REQUEST_FIELD_BOOLEAN) { | 516 if (type != GAIM_REQUEST_FIELD_BOOLEAN) { |
511 text = g_strdup_printf("%s:", | 517 text = g_strdup_printf("%s:", |
512 gaim_request_field_get_label(field)); | 518 gaim_request_field_get_label(field)); |
513 label = gtk_label_new(text); | 519 label = gtk_label_new(text); |