pidgin: 1a82c5b6: Per discussion in devel at conference.pidgi...

rekkanoryo at pidgin.im rekkanoryo at pidgin.im
Sun Nov 1 22:05:41 EST 2009


-----------------------------------------------------------------
Revision: 1a82c5b68c319181ac621f437e25eea4fdfeb205
Ancestor: dfd9475969579acbe9cf0dd4095147f0a94ce393
Author: rekkanoryo at pidgin.im
Date: 2009-11-02T02:18:09
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/1a82c5b68c319181ac621f437e25eea4fdfeb205

Modified files:
        pidgin/gtkprefs.c

ChangeLog: 

Per discussion in devel at conference.pidgin.im a couple days ago, make the
port range boxes on the Network tab of the prefs window fit on a single line
with the checkbox that enables/disables them.

-------------- next part --------------
============================================================
--- pidgin/gtkprefs.c	079e7fc4910ae22f57c9642152626a785b90f349
+++ pidgin/gtkprefs.c	15b51d3e7f0b819d7a6e0a1ae4791aa4cf2959d2
@@ -1887,23 +1887,27 @@ network_page(void)
 	pidgin_prefs_checkbox(_("_Enable automatic router port forwarding"),
 			"/purple/network/map_ports", vbox);
 
-	ports_checkbox = pidgin_prefs_checkbox(_("_Manually specify range of ports to listen on"),
-			"/purple/network/ports_range_use", vbox);
+	hbox = gtk_hbox_new(FALSE, PIDGIN_HIG_BOX_SPACE);
 
-	spin_button = pidgin_prefs_labeled_spin_button(vbox, _("_Start port:"),
+	ports_checkbox = pidgin_prefs_checkbox(_("_Manually specify range of ports to listen on:"),
+			"/purple/network/ports_range_use", hbox);
+
+	spin_button = pidgin_prefs_labeled_spin_button(hbox, _("_Start:"),
 			"/purple/network/ports_range_start", 0, 65535, sg);
 	if (!purple_prefs_get_bool("/purple/network/ports_range_use"))
 		gtk_widget_set_sensitive(GTK_WIDGET(spin_button), FALSE);
 	g_signal_connect(G_OBJECT(ports_checkbox), "clicked",
 					 G_CALLBACK(pidgin_toggle_sensitive), spin_button);
 
-	spin_button = pidgin_prefs_labeled_spin_button(vbox, _("_End port:"),
+	spin_button = pidgin_prefs_labeled_spin_button(hbox, _("_End:"),
 			"/purple/network/ports_range_end", 0, 65535, sg);
 	if (!purple_prefs_get_bool("/purple/network/ports_range_use"))
 		gtk_widget_set_sensitive(GTK_WIDGET(spin_button), FALSE);
 	g_signal_connect(G_OBJECT(ports_checkbox), "clicked",
 					 G_CALLBACK(pidgin_toggle_sensitive), spin_button);
 
+	pidgin_add_widget_to_vbox(GTK_BOX(vbox), NULL, NULL, hbox, TRUE, NULL);
+
 	g_object_unref(sg);
 
 	/* TURN server */


More information about the Commits mailing list