Always initialize child-visible to FALSE, otherwise we may end up with the
2005-05-06 Matthias Clasen <mclasen@redhat.com> * gtk/gtknotebook.c (gtk_notebook_insert_page_menu): Always initialize child-visible to FALSE, otherwise we may end up with the wrong page visible initially. (#302283, Patrik Fimml) * gtk/gtktreeview.c (gtk_tree_view_draw_arrow): Make expanders appear insensitive in insensitive treeviews.
This commit is contained in:

committed by
Matthias Clasen

parent
0ffbe85cc4
commit
1d50b80aed
@ -4371,10 +4371,8 @@ gtk_notebook_insert_page_menu (GtkNotebook *notebook,
|
||||
if (!notebook->first_tab)
|
||||
notebook->first_tab = notebook->children;
|
||||
|
||||
if (!notebook->cur_page)
|
||||
gtk_widget_set_child_visible (child, TRUE);
|
||||
else
|
||||
gtk_widget_set_child_visible (child, FALSE);
|
||||
/* child visible will be turned on by switch_page below */
|
||||
gtk_widget_set_child_visible (child, FALSE);
|
||||
|
||||
if (tab_label)
|
||||
{
|
||||
|
Reference in New Issue
Block a user