[gimp/goat-invasion: 304/418] app: remove legayc support from GimpImageMapTool



commit 9a9cee8b5eb538d60082ffee8ca3fadc2c85db3f
Author: Michael Natterer <mitch gimp org>
Date:   Thu Mar 29 02:38:46 2012 +0200

    app: remove legayc support from GimpImageMapTool

 app/tools/gimpimagemaptool.c |   14 +++-----------
 app/tools/gimpimagemaptool.h |    2 --
 2 files changed, 3 insertions(+), 13 deletions(-)
---
diff --git a/app/tools/gimpimagemaptool.c b/app/tools/gimpimagemaptool.c
index 9f39a1d..11f990b 100644
--- a/app/tools/gimpimagemaptool.c
+++ b/app/tools/gimpimagemaptool.c
@@ -594,28 +594,20 @@ gimp_image_map_tool_reset (GimpImageMapTool *tool)
 void
 gimp_image_map_tool_create_map (GimpImageMapTool *tool)
 {
-  Gimp     *gimp;
-  gboolean  use_gegl;
-
   g_return_if_fail (GIMP_IS_IMAGE_MAP_TOOL (tool));
 
-  gimp = GIMP_TOOL (tool)->tool_info->gimp;
-
   if (tool->image_map)
     {
       gimp_image_map_clear (tool->image_map);
       g_object_unref (tool->image_map);
     }
 
-  g_assert (tool->operation || tool->apply_func);
-
-  use_gegl = gimp_use_gegl (gimp) || ! tool->apply_func;
+  g_assert (tool->operation);
 
   tool->image_map = gimp_image_map_new (tool->drawable,
                                         GIMP_TOOL (tool)->tool_info->blurb,
-                                        use_gegl ? tool->operation : NULL,
-                                        tool->apply_func,
-                                        tool->apply_data);
+                                        tool->operation,
+                                        NULL, NULL);
 
   g_signal_connect (tool->image_map, "flush",
                     G_CALLBACK (gimp_image_map_tool_flush),
diff --git a/app/tools/gimpimagemaptool.h b/app/tools/gimpimagemaptool.h
index 6dcffaa..0ace946 100644
--- a/app/tools/gimpimagemaptool.h
+++ b/app/tools/gimpimagemaptool.h
@@ -43,8 +43,6 @@ struct _GimpImageMapTool
   GeglNode              *operation;
   GObject               *config;
   GObject               *default_config;
-  GimpImageMapApplyFunc  apply_func;
-  gpointer               apply_data;
 
   GimpImageMap          *image_map;
 



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