diff options
author | Matthias Clasen <mclasen@redhat.com> | 2011-06-16 22:15:50 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2011-06-16 22:15:50 -0400 |
commit | 9bb5077b908ad50dec00537bb7004ad53a430018 (patch) | |
tree | bc18d38f61e468ab96794f97fe0156a3c39d3cf7 /gtk/gtkbox.c | |
parent | 1da07caaeddbbfaeed708feda6ea97669b200995 (diff) | |
download | gtk+-9bb5077b908ad50dec00537bb7004ad53a430018.tar.gz |
GtkBox: don't reset styles too often
Diffstat (limited to 'gtk/gtkbox.c')
-rw-r--r-- | gtk/gtkbox.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gtk/gtkbox.c b/gtk/gtkbox.c index a592e81129..f97a80d583 100644 --- a/gtk/gtkbox.c +++ b/gtk/gtkbox.c @@ -935,11 +935,11 @@ gtk_box_invalidate_order (GtkBox *box) { gtk_widget_path_unref (private->sibling_path); private->sibling_path = NULL; - } - gtk_container_foreach (GTK_CONTAINER (box), - (GtkCallback) gtk_widget_reset_style, - NULL); + gtk_container_foreach (GTK_CONTAINER (box), + (GtkCallback) gtk_widget_reset_style, + NULL); + } } static void @@ -948,6 +948,7 @@ gtk_box_direction_changed (GtkWidget *widget, { gtk_box_invalidate_order (GTK_BOX (widget)); } + static void gtk_box_pack (GtkBox *box, GtkWidget *child, |