[gimp] Bug 761118 - GIMP prints many CRITICAL warnings



commit 88b4c89415ee661d3506fc5071730dae7ca1ac3a
Author: Michael Natterer <mitch gimp org>
Date:   Mon Mar 28 14:45:21 2016 +0200

    Bug 761118 - GIMP prints many CRITICAL warnings
    
    Bail out in gimp_overlay_box_scroll() if the widget is not realized.

 app/widgets/gimpoverlaybox.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/app/widgets/gimpoverlaybox.c b/app/widgets/gimpoverlaybox.c
index 13b75f3..604f73b 100644
--- a/app/widgets/gimpoverlaybox.c
+++ b/app/widgets/gimpoverlaybox.c
@@ -474,6 +474,11 @@ gimp_overlay_box_scroll (GimpOverlayBox *box,
   g_return_if_fail (GIMP_IS_OVERLAY_BOX (box));
 
   widget = GTK_WIDGET (box);
+
+  /* bug 761118 */
+  if (! gtk_widget_get_realized (widget))
+    return;
+
   window = gtk_widget_get_window (widget);
 
   /*  Undraw all overlays  */


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