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
This commit is contained in:
Ulf Lamping 2006-04-22 20:16:47 +00:00
parent 6ee4c7c720
commit ec5efe7370
1 changed files with 2 additions and 1 deletions

View File

@ -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);