[gimp/gimp-2-10] Issue #3133: Gimp freezes after selecting a filter	preset and...
- From: Jehan <jehanp src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gimp/gimp-2-10] Issue #3133: Gimp freezes after selecting a filter	preset and...
 
- Date: Wed, 20 Mar 2019 14:13:01 +0000 (UTC)
 
commit 2ebf56850eaf86727f1022b10b2a7322de94bf6e
Author: Jehan <jehan girinstud io>
Date:   Wed Mar 20 14:48:40 2019 +0100
    Issue #3133: Gimp freezes after selecting a filter preset and...
    
    ... clicking a GimpChain.
    Since commit c0c055b4e9, gimp_chain_button_set_active() emits the
    "toggled" signal. There is no need to emit it separately from
    GimpOperationTool when setting presets with
    gimp_operation_tool_set_config().
    
    In particular, since the "toggled" signal was even sent unconditionnally
    here, our code was ending creating several GBinding for the same 2
    adjustments, which was creating an infinite loop.
    
    (cherry picked from commit 03dc24455ab1616204a9ec8fd20070d4411b0b2c)
 app/tools/gimpoperationtool.c | 4 ----
 1 file changed, 4 deletions(-)
---
diff --git a/app/tools/gimpoperationtool.c b/app/tools/gimpoperationtool.c
index c7b5153be4..17ac2f1634 100644
--- a/app/tools/gimpoperationtool.c
+++ b/app/tools/gimpoperationtool.c
@@ -792,8 +792,6 @@ gimp_operation_tool_unlink_chains (GimpOperationTool *op_tool)
       if (active)
         {
           gimp_chain_button_set_active (chain, FALSE);
-
-          g_signal_emit_by_name (chain, "toggled");
         }
 
       chains = chains->next;
@@ -837,8 +835,6 @@ gimp_operation_tool_relink_chains (GimpOperationTool *op_tool)
               g_value_get_double (&double_y))
             {
               gimp_chain_button_set_active (chain, TRUE);
-
-              g_signal_emit_by_name (chain, "toggled");
             }
 
           g_value_unset (&double_x);
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]