# HG changeset patch # User Daniel Atallah # Date 1258478200 0 # Node ID 107764d9888084b174da6450408b2b3fd7770469 # Parent 7141673bd785265c8a0760afb268727a3a9e14f6 This appears to be the correct way to set the spin button value. diff -r 7141673bd785 -r 107764d98880 pidgin/gtkprefs.c --- a/pidgin/gtkprefs.c Tue Nov 17 17:10:22 2009 +0000 +++ b/pidgin/gtkprefs.c Tue Nov 17 17:16:40 2009 +0000 @@ -2078,11 +2078,8 @@ G_CALLBACK(proxy_print_option), (void *)PROXYPORT); if (proxy_info != NULL && purple_proxy_info_get_port(proxy_info) != 0) { - char buf[128]; - g_snprintf(buf, sizeof(buf), "%d", - purple_proxy_info_get_port(proxy_info)); - - gtk_entry_set_text(GTK_ENTRY(entry), buf); + gtk_spin_button_set_value(GTK_SPIN_BUTTON(entry), + purple_proxy_info_get_port(proxy_info)); } pidgin_set_accessible_label (entry, label);