[gimp/wip/animation: 16/145] plug-ins: make sure the drawing area is realized before drawing to it.



commit 39afdc6ec02ae021303049ecefcd9f0878c95d45
Author: Jehan <jehan girinstud io>
Date:   Wed Aug 19 16:34:35 2015 +0200

    plug-ins: make sure the drawing area is realized before drawing to it.

 plug-ins/animation-play/animation-dialog.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plug-ins/animation-play/animation-dialog.c b/plug-ins/animation-play/animation-dialog.c
index 8f87292..98af5e4 100755
--- a/plug-ins/animation-play/animation-dialog.c
+++ b/plug-ins/animation-play/animation-dialog.c
@@ -1948,7 +1948,7 @@ da_size_callback (GtkWidget       *drawing_area,
       /* As we re-allocated the drawn data, let's render it again. */
       if (animation_loaded (priv->animation))
         {
-          if (is_detached (dialog) && ! gtk_widget_get_realized (drawing_area))
+          if (! gtk_widget_get_realized (drawing_area))
             {
               /* Render will crash if the drawing are is not realized yet.
                * So I connect a handler to render on realization. */
@@ -2068,7 +2068,7 @@ render_on_realize (GtkWidget       *drawing_area,
 
 static void
 render_frame (AnimationDialog *dialog,
-                GeglBuffer      *buffer)
+              GeglBuffer      *buffer)
 {
   AnimationDialogPrivate *priv = GET_PRIVATE (dialog);
   static gchar  *shape_preview_mask      = NULL;


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