[gtk+] widget: Not all toplevels are also containers



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