Mercurial > pidgin.yaz
changeset 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 | b1fc288ffcb4 |
children | 9a08899192ee |
files | src/gtkrequest.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkrequest.c Wed Jun 11 22:13:54 2003 +0000 +++ b/src/gtkrequest.c Wed Jun 11 22:17:48 2003 +0000 @@ -95,8 +95,10 @@ static void field_string_focus_out_cb(GtkEntry *entry, GaimRequestField *field) { + const char *value = gtk_entry_get_text(entry); + gaim_request_field_string_set_value(field, - gtk_entry_get_text(entry)); + (*value == '\0' ? NULL : value)); } static void