GtkNotebook: Set widget state as state flags.

This commit is contained in:
Carlos Garnacho 2010-10-31 14:44:26 +01:00
parent 5f0f21aad3
commit 517eaa55e5

View File

@ -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);
}
}
}