summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Atallah <datallah@pidgin.im>2009-11-17 17:16:40 +0000
committerDaniel Atallah <datallah@pidgin.im>2009-11-17 17:16:40 +0000
commite25ad1fc63f8c9809a8115237a40c6b048ccc9e3 (patch)
tree1e5e8c048c05c62c7c3d79de822b69fe84404961
parent05b99eddfb2c20f4887efe0d08cc423919778da6 (diff)
downloadpidgin-e25ad1fc63f8c9809a8115237a40c6b048ccc9e3.tar.gz
This appears to be the correct way to set the spin button value.
-rw-r--r--pidgin/gtkprefs.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/pidgin/gtkprefs.c b/pidgin/gtkprefs.c
index 7ef57c28bc..983cfd020b 100644
--- a/pidgin/gtkprefs.c
+++ b/pidgin/gtkprefs.c
@@ -2078,11 +2078,8 @@ proxy_page(void)
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);