From 517eaa55e5277cb865ed6a7a3e304c0d85163153 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Sun, 31 Oct 2010 14:44:26 +0100 Subject: [PATCH] GtkNotebook: Set widget state as state flags. --- gtk/gtknotebook.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c index 708a8d0fff..f5a4db5cc9 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); } } }