[gimp] app: call gimp_text_tool_block_drawing() in proxy_notify()



commit 44f6d074a3deddcbccd4bbe084a510b493f46c85
Author: Michael Natterer <mitch gimp org>
Date:   Sun Mar 7 00:15:32 2010 +0100

    app: call gimp_text_tool_block_drawing() in proxy_notify()
    
    so we also correctly handle non-text and non-markup changes (e.g. via
    tool options). This is not exactly the right place to call
    block_drawing(), but all places which change change the actual content
    (and thus un-sync buffer and layout cursor posotions) already block
    drawing before the actual buffer change happens.

 app/tools/gimptexttool.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/app/tools/gimptexttool.c b/app/tools/gimptexttool.c
index a48b710..cb945a4 100644
--- a/app/tools/gimptexttool.c
+++ b/app/tools/gimptexttool.c
@@ -1036,6 +1036,8 @@ gimp_text_tool_proxy_notify (GimpText     *text,
 
   if ((pspec->flags & G_PARAM_READWRITE) == G_PARAM_READWRITE)
     {
+      gimp_text_tool_block_drawing (text_tool);
+
       text_tool->pending = g_list_append (text_tool->pending, pspec);
 
       if (text_tool->idle_id)



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