[gtk+] notebook: Remove irrelevant case



commit 22398ef4591d896190be049e0ee6ba4ab32f6059
Author: Benjamin Otte <otte redhat com>
Date:   Sat Dec 19 06:58:14 2015 +0100

    notebook: Remove irrelevant case
    
    The page is never the current page, because it was just created and the
    current page wasn't changed yet.

 gtk/gtknotebook.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index bbf1849..1527606 100644
--- a/gtk/gtknotebook.c
+++ b/gtk/gtknotebook.c
@@ -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)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]