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/gtkbox.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/gtkbox.c')
-rw-r--r-- | gtk/gtkbox.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gtk/gtkbox.c b/gtk/gtkbox.c index 96bc318694..9276a71e6c 100644 --- a/gtk/gtkbox.c +++ b/gtk/gtkbox.c @@ -85,6 +85,7 @@ #include "gtktypebuiltins.h" #include "gtksizerequest.h" #include "gtkwidgetpath.h" +#include "gtkwidgetprivate.h" #include "a11y/gtkboxaccessible.h" @@ -938,10 +939,16 @@ gtk_box_get_path_for_child (GtkContainer *container, } static void +gtk_box_invalidate_order_foreach (GtkWidget *widget) +{ + _gtk_widget_invalidate_style_context (widget, GTK_CSS_CHANGE_POSITION | GTK_CSS_CHANGE_SIBLING_POSITION); +} + +static void gtk_box_invalidate_order (GtkBox *box) { gtk_container_foreach (GTK_CONTAINER (box), - (GtkCallback) gtk_widget_reset_style, + (GtkCallback) gtk_box_invalidate_order_foreach, NULL); } |