Fix tabbed browsing in epiphany. (#413664, Christian Persch)

2007-03-13  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtknotebook.c (gtk_notebook_real_insert_page):
        Fix tabbed browsing in epiphany.  (#413664, Christian Persch)



svn path=/trunk/; revision=17505
This commit is contained in:
Matthias Clasen 2007-03-13 15:08:56 +00:00 committed by Matthias Clasen
parent 825f4bc153
commit 500435f2f9
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2007-03-13 Matthias Clasen <mclasen@redhat.com>
* gtk/gtknotebook.c (gtk_notebook_real_insert_page):
Fix tabbed browsing in epiphany. (#413664, Christian Persch)
2007-03-12 Matthias Clasen <mclasen@redhat.com> 2007-03-12 Matthias Clasen <mclasen@redhat.com>
* gtk/gtksizegroup.c (gtk_size_group_add_widget): Clarify * gtk/gtksizegroup.c (gtk_size_group_add_widget): Clarify

View File

@ -3971,9 +3971,6 @@ gtk_notebook_real_insert_page (GtkNotebook *notebook,
else else
g_object_ref_sink (page->menu_label); 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) if (notebook->menu)
gtk_notebook_menu_item_create (notebook, gtk_notebook_menu_item_create (notebook,
g_list_find (notebook->children, page)); g_list_find (notebook->children, page));
@ -3987,6 +3984,10 @@ gtk_notebook_real_insert_page (GtkNotebook *notebook,
if (!notebook->first_tab) if (!notebook->first_tab)
notebook->first_tab = notebook->children; 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 (tab_label)
{ {
if (notebook->show_tabs && GTK_WIDGET_VISIBLE (child)) if (notebook->show_tabs && GTK_WIDGET_VISIBLE (child))