[gtk+] GtkBox: don't reset styles too often
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkBox: don't reset styles too often
- Date: Fri, 17 Jun 2011 02:16:51 +0000 (UTC)
commit 9bb5077b908ad50dec00537bb7004ad53a430018
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Jun 16 22:15:50 2011 -0400
GtkBox: don't reset styles too often
gtk/gtkbox.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkbox.c b/gtk/gtkbox.c
index a592e81..f97a80d 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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]