[gimp] Bug 721066 - There is a 2nd, broken, "GEGL Operation" tool in the toolbox



commit 651be184b7ff7c66ad577e66103fe24b2701b491
Author: Michael Natterer <mitch gimp org>
Date:   Tue Feb 4 00:18:40 2014 +0100

    Bug 721066 - There is a 2nd, broken, "GEGL Operation" tool in the toolbox
    
    Make the operation tool invisible by default.

 app/tools/gimp-tools.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/app/tools/gimp-tools.c b/app/tools/gimp-tools.c
index fdea9f0..ac186f4 100644
--- a/app/tools/gimp-tools.c
+++ b/app/tools/gimp-tools.c
@@ -257,6 +257,7 @@ void
 gimp_tools_restore (Gimp *gimp)
 {
   GimpContainer *gimp_list;
+  GimpObject    *object;
   gchar         *filename;
   GList         *list;
   GError        *error = NULL;
@@ -283,7 +284,6 @@ gimp_tools_restore (Gimp *gimp)
            list = g_list_next (list), i++)
         {
           const gchar *name;
-          GimpObject  *object;
 
           name = gimp_object_get_name (list->data);
 
@@ -305,6 +305,12 @@ gimp_tools_restore (Gimp *gimp)
   g_free (filename);
   g_object_unref (gimp_list);
 
+  /* make the generic operation tool invisible by default */
+  object = gimp_container_get_child_by_name (gimp->tool_info_list,
+                                             "gimp-operation-tool");
+  if (object)
+    g_object_set (object, "visible", FALSE, NULL);
+
   for (list = gimp_get_tool_info_iter (gimp);
        list;
        list = g_list_next (list))


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