Display "main_second_pane" if, and only if, both widgets in it are

displayed; otherwise, if you hide both of them (e.g., hiding the packet
details and packet data panes in the default layout), "main_second_pane"
remains but as a gray blob, rather than having the remaining pane take
over the entire window.

svn path=/trunk/; revision=10794
This commit is contained in:
Guy Harris 2004-05-04 20:40:08 +00:00
parent 3e331f08f0
commit 6ae8786e94
1 changed files with 7 additions and 1 deletions

View File

@ -1,6 +1,6 @@
/* main.c
*
* $Id: main.c,v 1.428 2004/04/30 00:22:45 guy Exp $
* $Id: main.c,v 1.429 2004/05/04 20:40:08 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@ -3678,6 +3678,12 @@ void main_widgets_rearrange(void) {
} else {
gtk_widget_hide(byte_nb_ptr);
}
if (GTK_WIDGET_VISIBLE(pane_content[1]) ||
GTK_WIDGET_VISIBLE(pane_content[2])) {
gtk_widget_show(main_second_pane);
} else {
gtk_widget_hide(main_second_pane);
}
/* statusbar hbox */
if ((recent.filter_toolbar_show && filter_toolbar_show_in_statusbar) || recent.statusbar_show) {