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



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