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



commit cd5cd4cec15259a3cf4877fead5207c159a67b8e
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]