aboutsummaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2006-04-22 20:16:47 +0000
committerUlf Lamping <ulf.lamping@web.de>2006-04-22 20:16:47 +0000
commitec5efe737034e83e668edcbc22a22148860cf449 (patch)
tree3133d89e4a5e9cfdee8112291b1bbb1edd000741 /gtk
parent6ee4c7c720327c71b842130b2f4684194e45192d (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
svn path=/trunk/; revision=17960
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);