[gimp] app: queue the draw timeout only if paused_count reaches zero



commit 5b28d046740da8375f0a2b9841c5706da8946006
Author: Michael Natterer <mitch gimp org>
Date:   Thu Apr 22 17:15:08 2010 +0200

    app: queue the draw timeout only if paused_count reaches zero

 app/tools/gimpdrawtool.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/tools/gimpdrawtool.c b/app/tools/gimpdrawtool.c
index b3287a3..bd450b0 100644
--- a/app/tools/gimpdrawtool.c
+++ b/app/tools/gimpdrawtool.c
@@ -272,9 +272,9 @@ gimp_draw_tool_resume (GimpDrawTool *draw_tool)
       draw_tool->paused_count--;
 
 #ifdef USE_TIMEOUT
-      if (! draw_tool->draw_timeout)
+      if (draw_tool->paused_count == 0 && ! draw_tool->draw_timeout)
         draw_tool->draw_timeout =
-          gdk_threads_add_timeout_full (G_PRIORITY_HIGH,
+          gdk_threads_add_timeout_full (G_PRIORITY_HIGH_IDLE,
                                         DRAW_TIMEOUT,
                                         (GSourceFunc) gimp_draw_tool_draw_timeout,
                                         draw_tool, NULL);



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