pidgin: ce9d9e19: This appears to be the correct way to se...

datallah at pidgin.im datallah at pidgin.im
Tue Nov 17 12:20:48 EST 2009


-----------------------------------------------------------------
Revision: ce9d9e194ebc14005e7f581a79a34613d0c3765f
Ancestor: 5f49560734028801d879279c98bfc19b2f3acdf1
Author: datallah at pidgin.im
Date: 2009-11-17T17:16:40
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/ce9d9e194ebc14005e7f581a79a34613d0c3765f

Modified files:
        pidgin/gtkprefs.c

ChangeLog: 

This appears to be the correct way to set the spin button value.

-------------- next part --------------
============================================================
--- pidgin/gtkprefs.c	1090428e4df13c7b37ba38264b4e5547ad208107
+++ pidgin/gtkprefs.c	bbcb8dd6ae9183d15be3c22f51cc89c09d1175a7
@@ -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);
 


More information about the Commits mailing list