[gimp] app: Only initialize tools once



commit 2fd159ae069a5ee7c2809996ce0dd8c6e9d63228
Author: Martin Nordholts <martinn src gnome org>
Date:   Sun Aug 7 20:49:49 2011 +0200

    app: Only initialize tools once

 app/widgets/gimptoolpalette.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/app/widgets/gimptoolpalette.c b/app/widgets/gimptoolpalette.c
index 4fc8021..0cf58d7 100644
--- a/app/widgets/gimptoolpalette.c
+++ b/app/widgets/gimptoolpalette.c
@@ -453,4 +453,9 @@ gimp_tool_palette_initialize_tools (GimpToolPalette *palette)
                                      tool_info->help, tool_info->help_id);
         }
     }
+
+  /* We only need to initialize tools once */
+  g_signal_handlers_disconnect_by_func (private->toolbox,
+                                        gimp_tool_palette_initialize_tools,
+                                        palette);
 }



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