[gtk+] notebook: don't force ACTIVE state flag on the label for active tab



commit 70cf23a72956ec49c10867724b249bdcdee98d4f
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Wed Jan 18 16:10:20 2012 -0500

    notebook: don't force ACTIVE state flag on the label for active tab
    
    This is just wrong, since it's not the tab label being active, but the
    tab itself.

 gtk/gtknotebook.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index 32cdee7..62a8535 100644
--- a/gtk/gtknotebook.c
+++ b/gtk/gtknotebook.c
@@ -6508,10 +6508,12 @@ gtk_notebook_update_tab_states (GtkNotebook *notebook)
         {
           GtkRegionFlags current_flags;
 
+          /*
           if (page == priv->cur_page)
             gtk_widget_set_state_flags (page->tab_label, GTK_STATE_FLAG_ACTIVE, FALSE);
           else
             gtk_widget_unset_state_flags (page->tab_label, GTK_STATE_FLAG_ACTIVE);
+          */
 
           /* FIXME: We should store these flags somewhere instead of poking
            * the widget's path */



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