GNOME Bugzilla – Bug 312780
Add undo to foreground selection tool
Last modified: 2014-04-18 22:37:27 UTC
The new foreground selection tool should provide undo functionality, allowing the user to undo and redo the refinements made to the selection. I have this implemented to some extent but the integration with the undo system as outlined in this patch doesn't work. We will probably need to extend the undo system in order to make this work. I am attaching my current changes so that they don't get lost.
Created attachment 50331 [details] [review] current state of work
*** Bug 499690 has been marked as a duplicate of this bug. ***
Now easily possible with the new tool undo infrastructure, we should add this when fixing the tool for 2.10.
Comment on attachment 50331 [details] [review] current state of work This patch is now useless though.
Fixed in master: commit 6ec272fde7f978369b11fbd8767b669f8dac716f Author: Michael Natterer <mitch@gimp.org> Date: Sat Apr 19 00:34:21 2014 +0200 Bug 312780 - Add undo to foreground selection tool Implement undoing strokes by keeping copies of the changed parts of the trimap around in internal undo/redo stacks. app/tools/gimpforegroundselecttool.c | 265 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-- app/tools/gimpforegroundselecttool.h | 3 + 2 files changed, 260 insertions(+), 8 deletions(-)