[gimp] app: make a hack in GimpOperationTool slightly worse, but clearer



commit 54778783ed4f37e3e9b21bb45be262d89fc610c3
Author: Michael Natterer <mitch gimp org>
Date:   Sat Mar 9 20:27:02 2013 +0100

    app: make a hack in GimpOperationTool slightly worse, but clearer

 app/tools/gimpoperationtool.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/app/tools/gimpoperationtool.c b/app/tools/gimpoperationtool.c
index 394ce2c..d28e029 100644
--- a/app/tools/gimpoperationtool.c
+++ b/app/tools/gimpoperationtool.c
@@ -129,6 +129,7 @@ gimp_operation_tool_class_init (GimpOperationToolClass *klass)
 static void
 gimp_operation_tool_init (GimpOperationTool *tool)
 {
+  GIMP_IMAGE_MAP_TOOL_GET_CLASS (tool)->settings_name = NULL; /* XXX hack */
 }
 
 static void
@@ -342,7 +343,11 @@ gimp_operation_tool_set_operation (GimpOperationTool *tool,
   GIMP_IMAGE_MAP_TOOL (tool)->config = g_object_ref (tool->config);
 
   GIMP_VIEWABLE_GET_CLASS (tool->config)->default_stock_id = GIMP_STOCK_GEGL;
-  GIMP_IMAGE_MAP_TOOL_GET_CLASS (tool)->settings_name = dialog_desc; /* XXX hack */
+
+  if (dialog_desc)
+    GIMP_IMAGE_MAP_TOOL_GET_CLASS (tool)->settings_name = "yes"; /* XXX hack */
+  else
+    GIMP_IMAGE_MAP_TOOL_GET_CLASS (tool)->settings_name = NULL; /* XXX hack */
 
   if (tool->options_table)
     {


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