From 04dae1597ecc3b0b4eddff34da73a6a9b1c0a7c4 Mon Sep 17 00:00:00 2001 From: Leandro Pereira Date: Fri, 27 Jan 2012 00:46:06 -0200 Subject: Force shell vpaned to a sane size when changing view types --- shell/shell.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'shell') 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); -- cgit v1.2.3