[gtk+/wip/baedert/focus: 9/20] window: Remove check_resize special case for embedded toplevels
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/focus: 9/20] window: Remove check_resize special case for embedded toplevels
- Date: Fri, 10 Feb 2017 20:55:37 +0000 (UTC)
commit 5d0af49041fa5ff29f42d64508dea271ddf289d0
Author: Timm Bäder <mail baedert org>
Date: Wed Feb 8 13:45:51 2017 +0100
window: Remove check_resize special case for embedded toplevels
Those don't exist anymore.
gtk/gtkwindow.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index e3e4aeb..94c6427 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -7916,11 +7916,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));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]