sizegroup: refactor
The code looks a lot less dangerous if it doesn't look like we're casting a random widget to a container.
This commit is contained in:
parent
e19818359a
commit
8fea3b02c9
@ -227,15 +227,15 @@ real_queue_resize (GtkWidget *widget)
|
|||||||
|
|
||||||
G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
|
G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
|
||||||
if (GTK_IS_RESIZE_CONTAINER (widget))
|
if (GTK_IS_RESIZE_CONTAINER (widget))
|
||||||
|
{
|
||||||
|
gtk_container_queue_resize_handler (GTK_CONTAINER (widget));
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
G_GNUC_END_IGNORE_DEPRECATIONS;
|
G_GNUC_END_IGNORE_DEPRECATIONS;
|
||||||
|
|
||||||
widget = gtk_widget_get_parent (widget);
|
widget = gtk_widget_get_parent (widget);
|
||||||
}
|
}
|
||||||
while (widget);
|
while (widget);
|
||||||
|
|
||||||
if (widget)
|
|
||||||
gtk_container_queue_resize_handler (GTK_CONTAINER (widget));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user