summaryrefslogtreecommitdiff
path: root/gtk/gtknotebook.c
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2011-01-23 18:39:15 +0100
committerCarlos Garnacho <carlosg@gnome.org>2011-01-23 19:35:21 +0100
commit13a3954ad4c1978acc578637f9ce04a525bd5b03 (patch)
treef03289c765c70cdbb9c37a05a729f68692c35cf6 /gtk/gtknotebook.c
parentb3ba85a01c71067fbe4c99bee318424d767f12cb (diff)
downloadgtk+-13a3954ad4c1978acc578637f9ce04a525bd5b03.tar.gz
GtkNotebook: only set/unset active flag on the tab label
Diffstat (limited to 'gtk/gtknotebook.c')
-rw-r--r--gtk/gtknotebook.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index a237602f4b..9f671d5c91 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);
}