diff options
author | Matthias Clasen <mclasen@redhat.com> | 2007-03-09 04:44:20 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2007-03-09 04:44:20 +0000 |
commit | 9aca5027dd52daf3368be86a590a862644710ad5 (patch) | |
tree | f5cf9e8f7bfb25b9a8a15e28952892008e306b63 /gtk/gtknotebook.c | |
parent | 4cd640f72cb3176c8981f55be9ef433aeabf1e6a (diff) | |
download | gtk+-9aca5027dd52daf3368be86a590a862644710ad5.tar.gz |
Set child visibility to FALSE here; it will be turned back on in
2007-03-08 Matthias Clasen <mclasen@redhat.com>
* gtk/gtknotebook.c (gtk_notebook_real_insert_page):
Set child visibility to FALSE here; it will be turned
back on in switch_page. (#413664, Carlos Garnacho)
svn path=/trunk/; revision=17434
Diffstat (limited to 'gtk/gtknotebook.c')
-rw-r--r-- | gtk/gtknotebook.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c index c1c95a4b19..cb25de0e6d 100644 --- a/gtk/gtknotebook.c +++ b/gtk/gtknotebook.c @@ -3969,9 +3969,10 @@ gtk_notebook_real_insert_page (GtkNotebook *notebook, if (!menu_label) page->default_menu = TRUE; 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) gtk_notebook_menu_item_create (notebook, @@ -3986,9 +3987,6 @@ 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 */ - gtk_widget_set_child_visible (child, FALSE); - if (tab_label) { if (notebook->show_tabs && GTK_WIDGET_VISIBLE (child)) |