From: Matthias Clasen Date: Tue, 13 Mar 2007 15:08:56 +0000 (+0000) Subject: Fix tabbed browsing in epiphany. (#413664, Christian Persch) X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2~24^2~34260 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=500435f2f95c0fcc5fa3e49fa8c7814e5046aaf5;p=gtk4.git Fix tabbed browsing in epiphany. (#413664, Christian Persch) 2007-03-13 Matthias Clasen * gtk/gtknotebook.c (gtk_notebook_real_insert_page): Fix tabbed browsing in epiphany. (#413664, Christian Persch) svn path=/trunk/; revision=17505 --- diff --git a/ChangeLog b/ChangeLog index 97476ab2b4..f90e146e96 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-03-13 Matthias Clasen + + * gtk/gtknotebook.c (gtk_notebook_real_insert_page): + Fix tabbed browsing in epiphany. (#413664, Christian Persch) + 2007-03-12 Matthias Clasen * gtk/gtksizegroup.c (gtk_size_group_add_widget): Clarify diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c index cb25de0e6d..00fc10a2bb 100644 --- a/gtk/gtknotebook.c +++ b/gtk/gtknotebook.c @@ -3971,9 +3971,6 @@ gtk_notebook_real_insert_page (GtkNotebook *notebook, else g_object_ref_sink (page->menu_label); - /* child visible will be turned on by switch_page below */ - gtk_widget_set_child_visible (child, FALSE); - if (notebook->menu) gtk_notebook_menu_item_create (notebook, g_list_find (notebook->children, page)); @@ -3987,6 +3984,10 @@ gtk_notebook_real_insert_page (GtkNotebook *notebook, if (!notebook->first_tab) notebook->first_tab = notebook->children; + /* child visible will be turned on by switch_page below */ + if (notebook->cur_page != page) + gtk_widget_set_child_visible (child, FALSE); + if (tab_label) { if (notebook->show_tabs && GTK_WIDGET_VISIBLE (child))