[gtk+/gtk-style-context: 303/347] GtkNotebook: Set widget state as state flags.



commit 601f30529223884ee407867f73c276859190982c
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sun Oct 31 14:44:26 2010 +0100

    GtkNotebook: Set widget state as state flags.

 gtk/gtknotebook.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index 708a8d0..f5a4db5 100644
--- a/gtk/gtknotebook.c
+++ b/gtk/gtknotebook.c
@@ -4651,7 +4651,7 @@ gtk_notebook_remove_tab_label (GtkNotebook     *notebook,
 				     page->mnemonic_activate_signal);
       page->mnemonic_activate_signal = 0;
 
-      gtk_widget_set_state (page->tab_label, GTK_STATE_NORMAL);
+      gtk_widget_set_state_flags (page->tab_label, 0, TRUE);
       gtk_widget_unparent (page->tab_label);
       page->tab_label = NULL;
     }
@@ -6205,9 +6205,9 @@ gtk_notebook_update_tab_states (GtkNotebook *notebook)
       if (page->tab_label)
 	{
 	  if (page == priv->cur_page)
-	    gtk_widget_set_state (page->tab_label, GTK_STATE_NORMAL);
-	  else
-	    gtk_widget_set_state (page->tab_label, GTK_STATE_ACTIVE);
+            gtk_widget_set_state_flags (page->tab_label, GTK_STATE_FLAG_ACTIVE, TRUE);
+          else
+            gtk_widget_set_state_flags (page->tab_label, 0, TRUE);
 	}
     }
 }



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