[gtk+] GtkNotebook: only set/unset active flag on the tab label



commit 13a3954ad4c1978acc578637f9ce04a525bd5b03
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sun Jan 23 18:39:15 2011 +0100

    GtkNotebook: only set/unset active flag on the tab label

 gtk/gtknotebook.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index a237602..9f671d5 100644
--- a/gtk/gtknotebook.c
+++ b/gtk/gtknotebook.c
@@ -6242,9 +6242,9 @@ gtk_notebook_update_tab_states (GtkNotebook *notebook)
       if (page->tab_label)
         {
           if (page == priv->cur_page)
-            gtk_widget_set_state_flags (page->tab_label, GTK_STATE_FLAG_ACTIVE, TRUE);
+            gtk_widget_set_state_flags (page->tab_label, GTK_STATE_FLAG_ACTIVE, FALSE);
           else
-            gtk_widget_set_state_flags (page->tab_label, 0, TRUE);
+            gtk_widget_unset_state_flags (page->tab_label, GTK_STATE_FLAG_ACTIVE);
 
           gtk_widget_reset_style (page->tab_label);
         }



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