Mercurial > pidgin.yaz
diff console/gntrequest.c @ 14351:1bd09d355f9e
[gaim-migrate @ 17054]
Allow adding chats in the buddylist. And fix a few bugs along the way.
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sun, 27 Aug 2006 06:14:12 +0000 |
parents | b02b7017930f |
children | 81650a27f253 |
line wrap: on
line diff
--- a/console/gntrequest.c Sun Aug 27 02:44:52 2006 +0000 +++ b/console/gntrequest.c Sun Aug 27 06:14:12 2006 +0000 @@ -361,8 +361,12 @@ } else if (type == GAIM_REQUEST_FIELD_INTEGER) { - GntWidget *entry = gnt_entry_new( - gaim_request_field_string_get_default_value(field)); + char str[256]; + int val = gaim_request_field_int_get_default_value(field); + GntWidget *entry; + + snprintf(str, sizeof(str), "%d", val); + entry = gnt_entry_new(str); gnt_entry_set_flag(GNT_ENTRY(entry), GNT_ENTRY_FLAG_INT); gnt_box_add_widget(GNT_BOX(hbox), entry); field->ui_data = entry;