forked from AuroraMiddleware/gtk
sizegroup: Fold function into only caller
This commit is contained in:
parent
690e015ed1
commit
e19818359a
@ -204,13 +204,21 @@ _gtk_size_group_get_widget_peers (GtkWidget *for_widget,
|
||||
}
|
||||
|
||||
static void
|
||||
gtk_container_queue_resize (GtkContainer *container)
|
||||
real_queue_resize (GtkWidget *widget)
|
||||
{
|
||||
GtkWidget *widget;
|
||||
GtkWidget *container;
|
||||
|
||||
g_return_if_fail (GTK_IS_CONTAINER (container));
|
||||
_gtk_widget_set_alloc_needed (widget, TRUE);
|
||||
_gtk_size_request_cache_clear (_gtk_widget_peek_request_cache (widget));
|
||||
|
||||
widget = GTK_WIDGET (container);
|
||||
container = _gtk_widget_get_parent (widget);
|
||||
if (!container &&
|
||||
_gtk_widget_is_toplevel (widget) && GTK_IS_CONTAINER (widget))
|
||||
container = widget;
|
||||
|
||||
if (container)
|
||||
{
|
||||
widget = container;
|
||||
|
||||
do
|
||||
{
|
||||
@ -229,24 +237,6 @@ gtk_container_queue_resize (GtkContainer *container)
|
||||
if (widget)
|
||||
gtk_container_queue_resize_handler (GTK_CONTAINER (widget));
|
||||
}
|
||||
|
||||
static void
|
||||
real_queue_resize (GtkWidget *widget)
|
||||
{
|
||||
GtkWidget *container;
|
||||
|
||||
_gtk_widget_set_alloc_needed (widget, TRUE);
|
||||
_gtk_size_request_cache_clear (_gtk_widget_peek_request_cache (widget));
|
||||
|
||||
container = _gtk_widget_get_parent (widget);
|
||||
if (!container &&
|
||||
_gtk_widget_is_toplevel (widget) && GTK_IS_CONTAINER (widget))
|
||||
container = widget;
|
||||
|
||||
if (container)
|
||||
{
|
||||
gtk_container_queue_resize (GTK_CONTAINER (container));
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user