Revert "app: initialize GimpToolPreset's tool options from the user context"

This reverts commit b458b1b5c0.

This hides preset errors form users and creates confusion in case
of presets with bugs distributed among users. It also tries to set
resources from user context when that context doesnt exist yet.
This commit is contained in:
Alexia Death 2011-04-03 12:11:45 +03:00
parent b9c21da13a
commit 8bbc475eab

View file

@ -175,14 +175,6 @@ gimp_tool_preset_constructed (GObject *object)
G_OBJECT_CLASS (parent_class)->constructed (object); G_OBJECT_CLASS (parent_class)->constructed (object);
g_assert (GIMP_IS_GIMP (preset->gimp)); g_assert (GIMP_IS_GIMP (preset->gimp));
/* initialize the tool options with sane default values, so that if
* deserializing wants to set non-existant brushe, pattern etc.,
* the previously set default object will be used instead.
*/
gimp_context_copy_properties (gimp_get_user_context (preset->gimp),
GIMP_CONTEXT (preset->tool_options),
GIMP_CONTEXT_ALL_PROPS_MASK);
} }
static void static void