summaryrefslogtreecommitdiff
path: root/gtk/gtkbox.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2011-06-16 22:15:50 -0400
committerMatthias Clasen <mclasen@redhat.com>2011-06-16 22:15:50 -0400
commit9bb5077b908ad50dec00537bb7004ad53a430018 (patch)
treebc18d38f61e468ab96794f97fe0156a3c39d3cf7 /gtk/gtkbox.c
parent1da07caaeddbbfaeed708feda6ea97669b200995 (diff)
downloadgtk+-9bb5077b908ad50dec00537bb7004ad53a430018.tar.gz
GtkBox: don't reset styles too often
Diffstat (limited to 'gtk/gtkbox.c')
-rw-r--r--gtk/gtkbox.c9
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,