mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-29 06:51:10 +00:00
GtkNotebook: Set widget state as state flags.
This commit is contained in:
parent
5f0f21aad3
commit
517eaa55e5
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user