GtkNotebook: Fix a problem with tab states

When replacing the tab label, we were not adding the
active-page style class. Fix that.
This commit is contained in:
Matthias Clasen 2014-01-04 13:01:49 -05:00
parent 7cd3e7c81b
commit 64855f1295

View File

@ -7805,6 +7805,10 @@ gtk_notebook_set_tab_label (GtkNotebook *notebook,
G_CALLBACK (gtk_notebook_mnemonic_activate_switch_page),
notebook);
if (priv->cur_page == page)
gtk_style_context_add_class (gtk_widget_get_style_context (page->tab_label),
"active-page");
if (priv->show_tabs && gtk_widget_get_visible (child))
{
gtk_widget_show (page->tab_label);