summaryrefslogtreecommitdiff
path: root/gtk/gtknotebook.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2015-09-07 12:26:33 +0200
committerBenjamin Otte <otte@redhat.com>2015-10-22 16:42:48 +0200
commit182f9a7f390dbeaa4684a2f194f751535fb13a5b (patch)
tree26ac336887b84371ddda979243f08e3ff4d5973c /gtk/gtknotebook.c
parent2720d97db3525d4ac6a069acc3db032d943bd676 (diff)
downloadgtk+-182f9a7f390dbeaa4684a2f194f751535fb13a5b.tar.gz
notebook: Remove "active-page" class
Instead, just use the "tab:active" selector
Diffstat (limited to 'gtk/gtknotebook.c')
-rw-r--r--gtk/gtknotebook.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index abeeba13bf..8233251cbe 100644
--- a/gtk/gtknotebook.c
+++ b/gtk/gtknotebook.c
@@ -4970,9 +4970,6 @@ gtk_notebook_real_remove (GtkNotebook *notebook,
if (priv->cur_page == list->data)
{
- if (priv->cur_page->tab_label)
- gtk_style_context_remove_class (gtk_widget_get_style_context (priv->cur_page->tab_label),
- "active-page");
priv->cur_page = NULL;
if (next_list && !destroying)
gtk_notebook_switch_page (notebook, GTK_NOTEBOOK_PAGE (next_list));
@@ -6631,17 +6628,11 @@ gtk_notebook_real_switch_page (GtkNotebook *notebook,
gtk_widget_set_child_visible (priv->cur_page->child, FALSE);
gtk_css_node_set_state (priv->cur_page->cssnode,
gtk_css_node_get_state (priv->cur_page->cssnode) & ~GTK_STATE_FLAG_ACTIVE);
- if (priv->cur_page->tab_label)
- gtk_style_context_remove_class (gtk_widget_get_style_context (priv->cur_page->tab_label),
- "active-page");
}
priv->cur_page = page;
gtk_css_node_set_state (page->cssnode,
gtk_css_node_get_state (page->cssnode) | GTK_STATE_FLAG_ACTIVE);
- if (page->tab_label)
- gtk_style_context_add_class (gtk_widget_get_style_context (page->tab_label),
- "active-page");
if (!priv->focus_tab ||
priv->focus_tab->data != (gpointer) priv->cur_page)
@@ -7813,10 +7804,6 @@ 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->prelight_tab == page)
gtk_style_context_add_class (gtk_widget_get_style_context (page->tab_label),
"prelight-page");