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.
This commit is contained in:
Michael Natterer 2016-10-13 11:36:51 +02:00
parent 3d1c5641f7
commit 3a52bf4cce
2 changed files with 2 additions and 2 deletions

View File

@ -84,5 +84,5 @@ tool_preset_editor_restore_cmd_callback (GtkAction *action,
preset = GIMP_TOOL_PRESET (gimp_data_editor_get_data (editor)); preset = GIMP_TOOL_PRESET (gimp_data_editor_get_data (editor));
if (preset) if (preset)
gimp_context_tool_preset_changed (context); gimp_context_tool_preset_changed (gimp_get_user_context (context->gimp));
} }

View File

@ -89,5 +89,5 @@ tool_presets_restore_cmd_callback (GtkAction *action,
preset = gimp_context_get_tool_preset (context); preset = gimp_context_get_tool_preset (context);
if (preset) if (preset)
gimp_context_tool_preset_changed (context); gimp_context_tool_preset_changed (gimp_get_user_context (context->gimp));
} }