changeset 8467:b7f13b782f8b

[gaim-migrate @ 9197] Patch from Stu Tomlinson to make the port selection spin box in preferences bigger so 5 digit numbers fit. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 18 Mar 2004 04:19:46 +0000
parents 5562e8a74c94
children 91e9a268924a
files src/gtkprefs.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkprefs.c	Wed Mar 17 20:23:44 2004 +0000
+++ b/src/gtkprefs.c	Thu Mar 18 04:19:46 2004 +0000
@@ -129,7 +129,10 @@
 	adjust = gtk_adjustment_new(val, min, max, 1, 1, 1);
 	spin = gtk_spin_button_new(GTK_ADJUSTMENT(adjust), 1, 0);
 	g_object_set_data(G_OBJECT(spin), "val", key);
-	gtk_widget_set_size_request(spin, 50, -1);
+	if (max < 10000)
+		gtk_widget_set_size_request(spin, 50, -1);
+	else
+		gtk_widget_set_size_request(spin, 60, -1);
 	gtk_box_pack_start(GTK_BOX(hbox), spin, FALSE, FALSE, 0);
 	g_signal_connect(G_OBJECT(adjust), "value-changed",
 					 G_CALLBACK(update_spin_value), GTK_WIDGET(spin));