forked from AuroraMiddleware/gtk
[GtkSizeGroup] don't recurse into yourself
This commit is contained in:
parent
a2420c7db5
commit
44adf811ea
@ -223,6 +223,10 @@ queue_resize_on_widget (GtkWidget *widget,
|
||||
if (widget == parent)
|
||||
real_queue_resize (parent);
|
||||
}
|
||||
else if (tmp_list->data == widget)
|
||||
{
|
||||
g_warning ("A container and its child are part of this SizeGroup");
|
||||
}
|
||||
else
|
||||
queue_resize_on_widget (tmp_list->data, FALSE);
|
||||
|
||||
@ -249,6 +253,10 @@ queue_resize_on_widget (GtkWidget *widget,
|
||||
if (widget == parent)
|
||||
real_queue_resize (parent);
|
||||
}
|
||||
else if (tmp_list->data == widget)
|
||||
{
|
||||
g_warning ("A container and its child are part of this SizeGroup");
|
||||
}
|
||||
else
|
||||
queue_resize_on_widget (tmp_list->data, FALSE);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user