static void gimp_warp_tool_create_image_map (GimpWarpTool *wt, GimpDrawable *drawable) { if (! wt->graph) gimp_warp_tool_create_graph (wt); wt->image_map = gimp_image_map_new (drawable, _("Warp transform"), wt->graph, GIMP_STOCK_TOOL_WARP); gimp_image_map_set_region (wt->image_map, GIMP_IMAGE_MAP_REGION_DRAWABLE); #if 0 g_object_set (wt->image_map, "gegl-caching", TRUE, NULL); #endif g_signal_connect (wt->image_map, "flush", G_CALLBACK (gimp_warp_tool_image_map_flush), wt); }
static void gimp_warp_tool_create_filter (GimpWarpTool *wt, GimpDrawable *drawable) { if (! wt->graph) gimp_warp_tool_create_graph (wt); wt->filter = gimp_drawable_filter_new (drawable, _("Warp transform"), wt->graph, GIMP_STOCK_TOOL_WARP); gimp_drawable_filter_set_region (wt->filter, GIMP_FILTER_REGION_DRAWABLE); #if 0 g_object_set (wt->filter, "gegl-caching", TRUE, NULL); #endif g_signal_connect (wt->filter, "flush", G_CALLBACK (gimp_warp_tool_filter_flush), wt); }