[gtk+] 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+] window: Remove check_resize special case for embedded toplevels
- Date: Fri, 31 Mar 2017 07:55:27 +0000 (UTC)
commit ebdbb6873ab054febb232bffed407dd93d1c3703
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 2bb6fe6..da5c9be 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));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]