[gimp] Bug 731279 - Tool Preset Editor not working correctly
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Bug 731279 - Tool Preset Editor not working correctly
- Date: Thu, 13 Oct 2016 09:38:44 +0000 (UTC)
commit 3a52bf4cce1c1954419231d67a887818b53f0e12
Author: Michael Natterer <mitch gimp org>
Date: Thu Oct 13 11:36:51 2016 +0200
Bug 731279 - Tool Preset Editor not working correctly
Call gimp_context_tool_preset_changed() on the global user context,
not on the tool preset list's or tool preset editor's local
context. Fixes restoring of presets in MWM. Tracked down by Jose
Americo Gobbo.
app/actions/tool-preset-editor-commands.c | 2 +-
app/actions/tool-presets-commands.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/actions/tool-preset-editor-commands.c b/app/actions/tool-preset-editor-commands.c
index 21a7c05..bee1ad4 100644
--- a/app/actions/tool-preset-editor-commands.c
+++ b/app/actions/tool-preset-editor-commands.c
@@ -84,5 +84,5 @@ tool_preset_editor_restore_cmd_callback (GtkAction *action,
preset = GIMP_TOOL_PRESET (gimp_data_editor_get_data (editor));
if (preset)
- gimp_context_tool_preset_changed (context);
+ gimp_context_tool_preset_changed (gimp_get_user_context (context->gimp));
}
diff --git a/app/actions/tool-presets-commands.c b/app/actions/tool-presets-commands.c
index 816d227..bc7d647 100644
--- a/app/actions/tool-presets-commands.c
+++ b/app/actions/tool-presets-commands.c
@@ -89,5 +89,5 @@ tool_presets_restore_cmd_callback (GtkAction *action,
preset = gimp_context_get_tool_preset (context);
if (preset)
- gimp_context_tool_preset_changed (context);
+ gimp_context_tool_preset_changed (gimp_get_user_context (context->gimp));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]