[gtk+] notebook: show tabs when asked to



commit 6bf9715ce4add4b42cadb4b4b507ff011896becc
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Jan 17 14:35:58 2016 -0500

    notebook: show tabs when asked to
    
    gtk_notebook_set_show_tabs must make the header gadget
    visible when show_tabs is TRUE, not the other way around.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=760596

 gtk/gtknotebook.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index 3b9f7d4..d5ac77c 100644
--- a/gtk/gtknotebook.c
+++ b/gtk/gtknotebook.c
@@ -6953,7 +6953,7 @@ gtk_notebook_set_show_tabs (GtkNotebook *notebook,
     {
       gtk_widget_set_can_focus (GTK_WIDGET (notebook), TRUE);
       gtk_notebook_update_labels (notebook);
-      gtk_css_gadget_set_visible (priv->header_gadget, FALSE);
+      gtk_css_gadget_set_visible (priv->header_gadget, TRUE);
     }
 
   for (i = 0; i < N_ACTION_WIDGETS; i++)


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