aboutsummaryrefslogtreecommitdiff
path: root/shell/shell.c
diff options
context:
space:
mode:
authorLeandro Pereira <leandro@hardinfo.org>2012-01-27 00:46:06 -0200
committerLeandro Pereira <leandro@hardinfo.org>2012-01-27 00:46:06 -0200
commit04dae1597ecc3b0b4eddff34da73a6a9b1c0a7c4 (patch)
tree73ee62ca84eec340c7a0a67b8472ebfe84ec5ba1 /shell/shell.c
parentd3b9aa19f04e6be78afb8497e7808a3d42042bf2 (diff)
Force shell vpaned to a sane size when changing view types
Diffstat (limited to 'shell/shell.c')
-rw-r--r--shell/shell.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/shell/shell.c b/shell/shell.c
index 913a7084..9d0e88ba 100644
--- a/shell/shell.c
+++ b/shell/shell.c
@@ -1033,6 +1033,9 @@ static void set_view_type(ShellViewType viewtype, gboolean reload)
gtk_widget_show(shell->moreinfo->scroll);
gtk_notebook_set_page(GTK_NOTEBOOK(shell->notebook), 0);
gtk_widget_show(shell->notebook);
+
+ gtk_paned_set_position(GTK_PANED(shell->vpaned),
+ shell->hpaned->allocation.height / 2);
break;
case SHELL_VIEW_LOAD_GRAPH:
gtk_widget_show(shell->info->scroll);