[gimp] app: don't run the main loop manually after calling gimp_progress_set_value()



commit 41cad26f12c3be75cdfa2f311865afcb24782a0b
Author: Michael Natterer <mitch gimp org>
Date:   Wed Nov 10 00:14:22 2010 +0100

    app: don't run the main loop manually after calling gimp_progress_set_value()

 app/core/gimpdrawable-operation.c |   12 +-----------
 1 files changed, 1 insertions(+), 11 deletions(-)
---
diff --git a/app/core/gimpdrawable-operation.c b/app/core/gimpdrawable-operation.c
index 95a8d01..3199b77 100644
--- a/app/core/gimpdrawable-operation.c
+++ b/app/core/gimpdrawable-operation.c
@@ -166,17 +166,7 @@ gimp_drawable_apply_operation_private (GimpDrawable       *drawable,
 
   while (gegl_processor_work (processor, &value))
     if (progress)
-      {
-        gimp_progress_set_value (progress, value);
-
-        /* FIXME: this needs to move to GimpProgress, it seems the
-         * introduction of client-side windows has somehow changed
-         * things, so calling gdk_window_process_updates() is not
-         * enough any longer.
-         */
-        while (g_main_context_pending (NULL))
-          g_main_context_iteration (NULL, TRUE);
-      }
+      gimp_progress_set_value (progress, value);
 
   g_object_unref (processor);
 



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