aboutsummaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>2006-04-22 20:16:47 +0000
committerulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>2006-04-22 20:16:47 +0000
commitbea7835a87ae2c1c391c897c274a8ae7e8e13bf9 (patch)
tree3133d89e4a5e9cfdee8112291b1bbb1edd000741 /gtk
parentebf67952e27216a0d19466776bc60dcec6153435 (diff)
as I've experienced a scrollbar again while having 7 interfaces, I've tried to add the number of interfaces to the height formula to fix this
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17960 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk')
-rw-r--r--gtk/capture_if_dlg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/capture_if_dlg.c b/gtk/capture_if_dlg.c
index 4dc6bcb96a..377b011fbc 100644
--- a/gtk/capture_if_dlg.c
+++ b/gtk/capture_if_dlg.c
@@ -557,7 +557,8 @@ capture_if_cb(GtkWidget *w _U_, gpointer d _U_)
}
gtk_widget_size_request(GTK_WIDGET(close_bt), &requisition);
- height += requisition.height + 27;
+ /* height + static offset + what GTK-Wimp needs in addition per interface */
+ height += requisition.height + 26 + ifs;
gtk_window_set_default_size(GTK_WINDOW(cap_if_w), -1, height);
gtk_widget_grab_default(close_bt);