From 4411cc918d24d1837b511297bef5bb7439e2022e Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Tue, 7 Apr 2009 09:01:12 +0000 Subject: [PATCH] Update GTK tab opening to hopefully correctly render pages on open. (Mark Benjamin) svn path=/trunk/netsurf/; revision=7055 --- gtk/gtk_tabs.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/gtk/gtk_tabs.c b/gtk/gtk_tabs.c index 2aedcff77..3e495af1d 100644 --- a/gtk/gtk_tabs.c +++ b/gtk/gtk_tabs.c @@ -57,12 +57,15 @@ void nsgtk_tab_init(GtkWidget *tabs) void nsgtk_tab_add(struct gui_window *window) { GtkNotebook *tabs = nsgtk_scaffolding_get_notebook(window); - GtkWidget *tabBox = nsgtk_tab_label_setup(window); + gtk_notebook_append_page(tabs, - GTK_WIDGET(window->scrolledwindow), tabBox); - + GTK_WIDGET(window->scrolledwindow), + tabBox); + gtk_widget_show_all(GTK_WIDGET(window->scrolledwindow)); + + gtk_notebook_set_current_page(tabs, gtk_notebook_get_n_pages(tabs) - 1); } void nsgtk_tab_visibility_update(GtkNotebook *notebook, GtkWidget *child,