Bug 789764 - Please add Paste In Place feature

Desktop / GNOME / GIMP - Michael Natterer [gimp.org] - 12 November 2017 17:41 EST

Add "In Place" variants for all sorts of pasting:

- extend the GimpPasteType enum with IN_PLACE values- add the needed actions and menu items- merge the action callbacks into one, taking an enum value as parameter- refactor the pasting code in gimp-edit.c into smaller functions

We probably have too menu items in the "Edit" menu now, needs to be sorted out.

f12d0d8c29 Bug 789764 - Please add Paste In Place feature
app/actions/buffers-actions.c | 69 ++++++---
app/actions/buffers-commands.c | 110 ++++++--------
app/actions/buffers-commands.h | 5 +-
app/actions/edit-actions.c | 82 ++++++++---
app/actions/edit-commands.c | 52 +++----
app/actions/edit-commands.h | 5 +-
app/core/core-enums.c | 6 +
app/core/core-enums.h | 5 +-
app/core/gimp-edit.c | 321 ++++++++++++++++++++++++++---------------
app/core/gimp-edit.h | 10 --
app/widgets/gimpbufferview.c | 16 +-
app/widgets/gimphelp-ids.h | 6 +
menus/buffers-menu.xml | 3 +
menus/image-menu.xml.in | 3 +
14 files changed, 417 insertions(+), 276 deletions(-)

Upstream: git.gnome.org


  • Share