Mercurial > pidgin
comparison src/gtkrequest.c @ 5834:77eba2e68d07
[gaim-migrate @ 6265]
Empty string fields are now considered NULL values.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Wed, 11 Jun 2003 22:17:48 +0000 |
parents | db204c4a411b |
children | 9a08899192ee |
comparison
equal
deleted
inserted
replaced
5833:b1fc288ffcb4 | 5834:77eba2e68d07 |
---|---|
93 } | 93 } |
94 | 94 |
95 static void | 95 static void |
96 field_string_focus_out_cb(GtkEntry *entry, GaimRequestField *field) | 96 field_string_focus_out_cb(GtkEntry *entry, GaimRequestField *field) |
97 { | 97 { |
98 const char *value = gtk_entry_get_text(entry); | |
99 | |
98 gaim_request_field_string_set_value(field, | 100 gaim_request_field_string_set_value(field, |
99 gtk_entry_get_text(entry)); | 101 (*value == '\0' ? NULL : value)); |
100 } | 102 } |
101 | 103 |
102 static void | 104 static void |
103 field_int_focus_out_cb(GtkEntry *entry, GaimRequestField *field) | 105 field_int_focus_out_cb(GtkEntry *entry, GaimRequestField *field) |
104 { | 106 { |