# HG changeset patch # User Mark Doliner # Date 1079583586 0 # Node ID b7f13b782f8b53718185e75c59e2f24679c57cad # Parent 5562e8a74c94a509b8e64089b7e3d1197bf895d5 [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 diff -r 5562e8a74c94 -r b7f13b782f8b src/gtkprefs.c --- 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));