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



commit 8bbc475eabe2d687089bce714e157d1861701ed7
Author: Alexia Death <alexiadeath gmail com>
Date:   Sun Apr 3 12:11:45 2011 +0300

    Revert "app: initialize GimpToolPreset's tool options from the user context"
    
    This reverts commit b458b1b5c07332705c2413c613c31f1444a8b7fa.
    
    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.

 app/core/gimptoolpreset.c |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)
---
diff --git a/app/core/gimptoolpreset.c b/app/core/gimptoolpreset.c
index abacb9e..ce5a699 100644
--- a/app/core/gimptoolpreset.c
+++ b/app/core/gimptoolpreset.c
@@ -175,14 +175,6 @@ gimp_tool_preset_constructed (GObject *object)
     G_OBJECT_CLASS (parent_class)->constructed (object);
 
   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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]