mirror of https://github.com/GNOME/gimp.git
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:
parent
3d1c5641f7
commit
3a52bf4cce
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue