[gimp] Bug 727762 - Undo- and redobutton in Undo History Dialog (gimpundoeditor)...
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Bug 727762 - Undo- and redobutton in Undo History Dialog (gimpundoeditor)...
- Date: Tue, 8 Apr 2014 23:27:35 +0000 (UTC)
commit d43022e5c4ee630f26f12216551452978de454df
Author: Michael Natterer <mitch gimp org>
Date: Wed Apr 9 01:21:56 2014 +0200
Bug 727762 - Undo- and redobutton in Undo History Dialog (gimpundoeditor)...
...don't work
Make action_data_get_display() return the right display also if the
action callback's user_data is a GimpImageEditor (GimpUndoEditor in
this case). The undo and redo actions now require a display, not only
an image, so this broke as a side effect.
app/actions/actions.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/app/actions/actions.c b/app/actions/actions.c
index b9b87cb..0dfd921 100644
--- a/app/actions/actions.c
+++ b/app/actions/actions.c
@@ -395,6 +395,8 @@ action_data_get_display (gpointer data)
context = gimp_dock_get_context ((GimpDock *) data);
else if (GIMP_IS_DOCK_WINDOW (data))
context = gimp_dock_window_get_context (((GimpDockWindow *) data));
+ else if (GIMP_IS_IMAGE_EDITOR (data))
+ context = ((GimpImageEditor *) data)->context;
else if (GIMP_IS_NAVIGATION_EDITOR (data))
context = ((GimpNavigationEditor *) data)->context;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]