app: add gimp_gegl_node_has_key()
... which determines if a node's operation-class has a specific key, and can be used instead of gimp_gegl_node_get_key() when only existence is important, to avoid compiler warnings. Update the rest of the code to use the new function.
This commit is contained in:
@ -61,7 +61,7 @@ gimp_drawable_apply_operation (GimpDrawable *drawable,
|
||||
filter = gimp_drawable_filter_new (drawable, undo_desc, operation, NULL);
|
||||
|
||||
if (gimp_drawable_supports_alpha (drawable) &&
|
||||
gimp_gegl_node_get_key (operation, "needs-alpha"))
|
||||
gimp_gegl_node_has_key (operation, "needs-alpha"))
|
||||
{
|
||||
gimp_drawable_filter_set_add_alpha (filter, TRUE);
|
||||
}
|
||||
|
Reference in New Issue
Block a user