app: Add "Flood" select action

and associated UI entries.

This action applies the "gimp:flood" operation to the selection.
This commit is contained in:
Ell
2016-01-24 17:43:35 +00:00
committed by Michael Natterer
parent 3f04e349cf
commit 71119d41c0
7 changed files with 34 additions and 0 deletions

View File

@ -101,6 +101,12 @@ static const GimpActionEntry select_actions[] =
G_CALLBACK (select_border_cmd_callback),
GIMP_HELP_SELECTION_BORDER },
{ "select-flood", NULL,
NC_("select-action", "F_lood"), NULL,
NC_("select-action", "Level the selection's interior"),
G_CALLBACK (select_flood_cmd_callback),
GIMP_HELP_SELECTION_FLOOD },
{ "select-save", GIMP_STOCK_SELECTION_TO_CHANNEL,
NC_("select-action", "Save to _Channel"), NULL,
NC_("select-action", "Save the selection to a channel"),
@ -169,6 +175,7 @@ select_actions_update (GimpActionGroup *group,
SET_SENSITIVE ("select-shrink", drawable && sel);
SET_SENSITIVE ("select-grow", drawable && sel);
SET_SENSITIVE ("select-border", drawable && sel);
SET_SENSITIVE ("select-flood", drawable && sel);
SET_SENSITIVE ("select-save", drawable && !fs);
SET_SENSITIVE ("select-stroke", writable && !children && sel);