mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-14 12:41:07 +00:00
notebook: Remove irrelevant case
The page is never the current page, because it was just created and the current page wasn't changed yet.
This commit is contained in:
parent
0e528ec74e
commit
22398ef459
@ -4800,8 +4800,7 @@ gtk_notebook_real_insert_page (GtkNotebook *notebook,
|
||||
g_list_find (priv->children, page));
|
||||
|
||||
/* child visible will be turned on by switch_page below */
|
||||
if (priv->cur_page != page)
|
||||
gtk_widget_set_child_visible (child, FALSE);
|
||||
gtk_widget_set_child_visible (child, FALSE);
|
||||
|
||||
gtk_widget_set_parent (child, GTK_WIDGET (notebook));
|
||||
if (tab_label)
|
||||
|
Loading…
Reference in New Issue
Block a user