app: selection stroke and "Stroke Path" now multi-layer aware.

This includes "select-stroke*" actions and "Stroke Path" feature of the
Vector tool.
This commit is contained in:
Jehan
2020-08-01 13:59:21 +02:00
parent 8237c4c3d9
commit 2ba6ac6286
8 changed files with 55 additions and 38 deletions

View File

@ -132,7 +132,7 @@ static const GimpActionEntry select_actions[] =
GIMP_HELP_SELECTION_STROKE },
{ "select-stroke-last-values", GIMP_ICON_SELECTION_STROKE,
NC_("select-action", "_Stroke Selection"), NULL,
NC_("select-action", "_Stroke Selection with last values"), NULL,
NC_("select-action", "Stroke the selection with last used values"),
select_stroke_last_vals_cmd_callback,
GIMP_HELP_SELECTION_STROKE }
@ -210,8 +210,8 @@ select_actions_update (GimpActionGroup *group,
SET_SENSITIVE ("select-save", image && !fs);
SET_SENSITIVE ("select-fill", drawables && all_writable && no_groups && sel);
SET_SENSITIVE ("select-fill-last-values", drawables && all_writable && no_groups && sel);
SET_SENSITIVE ("select-stroke", writable && !children && sel);
SET_SENSITIVE ("select-stroke-last-values", writable && !children && sel);
SET_SENSITIVE ("select-stroke", drawables && all_writable && no_groups && sel);
SET_SENSITIVE ("select-stroke-last-values", drawables && all_writable && no_groups && sel);
#undef SET_SENSITIVE