app: remove legayc support from GimpImageMapTool
This commit is contained in:
@ -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),
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user