[gtk+/wip/baedert/box: 64/72] widget: Not all toplevels are also containers



commit d5d167190546215f1d66829d1a055faff88bcc43
Author: Timm Bäder <mail baedert org>
Date:   Mon Oct 17 09:13:51 2016 +0200

    widget: Not all toplevels are also containers

 gtk/gtkwidget.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 55c6569..2854d07 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -5219,7 +5219,7 @@ gtk_widget_queue_resize_internal (GtkWidget *widget)
       }
   }
 
-  if (_gtk_widget_is_toplevel (widget))
+  if (_gtk_widget_is_toplevel (widget) && GTK_IS_CONTAINER (widget))
     {
       gtk_container_queue_resize_handler (GTK_CONTAINER (widget));
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]