Commit 21ec859c authored by Michael Natterer's avatar Michael Natterer 😴

app: rename gimp_layer_flatten() to gimp_layer_remove_alpha()

parent 1d76d085
......@@ -972,7 +972,7 @@ layers_alpha_remove_cmd_callback (GtkAction *action,
if (gimp_drawable_has_alpha (GIMP_DRAWABLE (layer)))
{
gimp_layer_flatten (layer, action_data_get_context (data));
gimp_layer_remove_alpha (layer, action_data_get_context (data));
gimp_image_flush (image);
}
}
......
......@@ -1906,8 +1906,8 @@ gimp_layer_add_alpha (GimpLayer *layer)
}
void
gimp_layer_flatten (GimpLayer *layer,
GimpContext *context)
gimp_layer_remove_alpha (GimpLayer *layer,
GimpContext *context)
{
GeglBuffer *new_buffer;
GimpRGB background;
......
......@@ -105,7 +105,7 @@ void gimp_layer_set_show_mask (GimpLayer *layer,
gboolean gimp_layer_get_show_mask (GimpLayer *layer);
void gimp_layer_add_alpha (GimpLayer *layer);
void gimp_layer_flatten (GimpLayer *layer,
void gimp_layer_remove_alpha (GimpLayer *layer,
GimpContext *context);
void gimp_layer_resize_to_image (GimpLayer *layer,
......
......@@ -329,7 +329,9 @@ layer_add_alpha_invoker (GimpProcedure *procedure,
if (gimp_pdb_item_is_modifyable (GIMP_ITEM (layer),
GIMP_PDB_ITEM_CONTENT, error) &&
gimp_pdb_item_is_not_group (GIMP_ITEM (layer), error))
gimp_layer_add_alpha (layer);
{
gimp_layer_add_alpha (layer);
}
else
success = FALSE;
}
......@@ -356,7 +358,9 @@ layer_flatten_invoker (GimpProcedure *procedure,
if (gimp_pdb_item_is_modifyable (GIMP_ITEM (layer),
GIMP_PDB_ITEM_CONTENT, error) &&
gimp_pdb_item_is_not_group (GIMP_ITEM (layer), error))
gimp_layer_flatten (layer, context);
{
gimp_layer_remove_alpha (layer, context);
}
else
success = FALSE;
}
......
......@@ -668,7 +668,9 @@ HELP
if (gimp_pdb_item_is_modifyable (GIMP_ITEM (layer),
GIMP_PDB_ITEM_CONTENT, error) &&
gimp_pdb_item_is_not_group (GIMP_ITEM (layer), error))
gimp_layer_add_alpha (layer);
{
gimp_layer_add_alpha (layer);
}
else
success = FALSE;
}
......@@ -701,7 +703,9 @@ HELP
if (gimp_pdb_item_is_modifyable (GIMP_ITEM (layer),
GIMP_PDB_ITEM_CONTENT, error) &&
gimp_pdb_item_is_not_group (GIMP_ITEM (layer), error))
gimp_layer_flatten (layer, context);
{
gimp_layer_remove_alpha (layer, context);
}
else
success = FALSE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment