forked from AuroraMiddleware/gtk
GtkBox: don't reset styles too often
This commit is contained in:
parent
1da07caaed
commit
9bb5077b90
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user