app: remove legayc support from GimpImageMapTool

This commit is contained in:
Michael Natterer
2012-03-29 02:38:46 +02:00
parent f248324fd3
commit 98226d0b36
2 changed files with 3 additions and 13 deletions

View File

@ -594,28 +594,20 @@ gimp_image_map_tool_reset (GimpImageMapTool *tool)
void void
gimp_image_map_tool_create_map (GimpImageMapTool *tool) gimp_image_map_tool_create_map (GimpImageMapTool *tool)
{ {
Gimp *gimp;
gboolean use_gegl;
g_return_if_fail (GIMP_IS_IMAGE_MAP_TOOL (tool)); g_return_if_fail (GIMP_IS_IMAGE_MAP_TOOL (tool));
gimp = GIMP_TOOL (tool)->tool_info->gimp;
if (tool->image_map) if (tool->image_map)
{ {
gimp_image_map_clear (tool->image_map); gimp_image_map_clear (tool->image_map);
g_object_unref (tool->image_map); g_object_unref (tool->image_map);
} }
g_assert (tool->operation || tool->apply_func); g_assert (tool->operation);
use_gegl = gimp_use_gegl (gimp) || ! tool->apply_func;
tool->image_map = gimp_image_map_new (tool->drawable, tool->image_map = gimp_image_map_new (tool->drawable,
GIMP_TOOL (tool)->tool_info->blurb, GIMP_TOOL (tool)->tool_info->blurb,
use_gegl ? tool->operation : NULL, tool->operation,
tool->apply_func, NULL, NULL);
tool->apply_data);
g_signal_connect (tool->image_map, "flush", g_signal_connect (tool->image_map, "flush",
G_CALLBACK (gimp_image_map_tool_flush), G_CALLBACK (gimp_image_map_tool_flush),

View File

@ -43,8 +43,6 @@ struct _GimpImageMapTool
GeglNode *operation; GeglNode *operation;
GObject *config; GObject *config;
GObject *default_config; GObject *default_config;
GimpImageMapApplyFunc apply_func;
gpointer apply_data;
GimpImageMap *image_map; GimpImageMap *image_map;