diff options
author | Benjamin Otte <otte@redhat.com> | 2012-03-21 09:37:09 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2012-04-17 08:59:10 +0200 |
commit | ece9d2fd92b228503bc450dd2778f8d673dbfa18 (patch) | |
tree | b35db4b944d7960cd85251c0563e9cd0a0e89779 /gtk/gtknotebook.c | |
parent | e7a984b33762a3edd787294b012b4524cb8fd606 (diff) | |
download | gtk+-ece9d2fd92b228503bc450dd2778f8d673dbfa18.tar.gz |
gtk: Make widget only invalidate widget positions
Instead of resetting them completely
Diffstat (limited to 'gtk/gtknotebook.c')
-rw-r--r-- | gtk/gtknotebook.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c index 5ebdf707a7..5978e3dac6 100644 --- a/gtk/gtknotebook.c +++ b/gtk/gtknotebook.c @@ -42,6 +42,7 @@ #include "gtkbuildable.h" #include "gtktypebuiltins.h" #include "gtkwidgetpath.h" +#include "gtkwidgetprivate.h" #include "a11y/gtknotebookaccessible.h" @@ -6536,7 +6537,7 @@ gtk_notebook_update_tab_states (GtkNotebook *notebook) GTK_STYLE_REGION_TAB, ¤t_flags) || current_flags != _gtk_notebook_get_tab_flags (notebook, page)) - gtk_widget_reset_style (page->tab_label); + _gtk_widget_invalidate_style_context (page->tab_label, GTK_CSS_CHANGE_PARENT_STATE); } } } |