forked from AuroraMiddleware/gtk
sizegroup: Refactor function
This commit is contained in:
parent
dd0e5cfce6
commit
0721d964e4
@ -243,9 +243,11 @@ queue_resize_on_widget (GtkWidget *widget,
|
||||
GHashTableIter iter;
|
||||
gpointer current;
|
||||
|
||||
if (widget == parent)
|
||||
real_queue_resize (widget);
|
||||
|
||||
if (widget == parent && !check_siblings)
|
||||
{
|
||||
real_queue_resize (widget);
|
||||
parent = _gtk_widget_get_parent (parent);
|
||||
continue;
|
||||
}
|
||||
@ -253,9 +255,6 @@ queue_resize_on_widget (GtkWidget *widget,
|
||||
widget_groups = _gtk_widget_get_sizegroups (parent);
|
||||
if (!widget_groups)
|
||||
{
|
||||
if (widget == parent)
|
||||
real_queue_resize (widget);
|
||||
|
||||
parent = _gtk_widget_get_parent (parent);
|
||||
continue;
|
||||
}
|
||||
@ -269,8 +268,7 @@ queue_resize_on_widget (GtkWidget *widget,
|
||||
{
|
||||
if (current == parent)
|
||||
{
|
||||
if (widget == parent)
|
||||
real_queue_resize (parent);
|
||||
/* do nothing */
|
||||
}
|
||||
else if (current == widget)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user