From ebdbb6873ab054febb232bffed407dd93d1c3703 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Wed, 8 Feb 2017 13:45:51 +0100 Subject: [PATCH] window: Remove check_resize special case for embedded toplevels Those don't exist anymore. --- gtk/gtkwindow.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c index 2bb6fe6256..da5c9be3a5 100644 --- a/gtk/gtkwindow.c +++ b/gtk/gtkwindow.c @@ -7915,11 +7915,7 @@ gtk_window_remove (GtkContainer *container, static void gtk_window_check_resize (GtkContainer *container) { - /* If the window is not toplevel anymore than it's embedded somewhere, - * so handle it like a normal window */ - if (!_gtk_widget_is_toplevel (GTK_WIDGET (container))) - GTK_CONTAINER_CLASS (gtk_window_parent_class)->check_resize (container); - else if (!_gtk_widget_get_alloc_needed (GTK_WIDGET (container))) + if (!_gtk_widget_get_alloc_needed (GTK_WIDGET (container))) GTK_CONTAINER_CLASS (gtk_window_parent_class)->check_resize (container); else if (gtk_widget_get_visible (GTK_WIDGET (container))) gtk_window_move_resize (GTK_WINDOW (container));