Bug 792470 - Some filters e.g. "Levels" are not added to "Repeat last" history

The four remaining "classic" color tools (Brightness-Contrast, Curves,
Levels and Threshold) are in fact just special UIs for otherwise
completely normal filter ops.

Add normal filter actions for them and invoke them like all
other filters, which makes them show up in the filter history
automatically.

The only small hack needed is to special case them in
gimp_gegl_procedure_execute_async() so the right tools are created
instead of the default GimpOperationTool. Also, blacklist the
automatically generated tools actions from action search and the
shortcut editor.
This commit is contained in:
Michael Natterer
2018-01-14 15:42:29 +01:00
parent 458e313000
commit b23f231a1a
13 changed files with 99 additions and 28 deletions

View File

@ -569,9 +569,9 @@
<menuitem action="filters-saturation" />
<menuitem action="filters-exposure" />
<menuitem action="filters-shadows-highlights" />
<menuitem action="tools-brightness-contrast" />
<menuitem action="tools-levels" />
<menuitem action="tools-curves" />
<menuitem action="filters-brightness-contrast" />
<menuitem action="filters-levels" />
<menuitem action="filters-curves" />
<separator />
<placeholder name="Invert">
<menuitem action="filters-invert-perceptual" />
@ -616,7 +616,7 @@
<menuitem action="dialogs-histogram" />
</menu>
<separator />
<menuitem action="tools-threshold" />
<menuitem action="filters-threshold" />
<menuitem action="filters-colorize" />
<menuitem action="filters-posterize" />
<menuitem action="filters-color-to-alpha" />