[gimp] app: use gimp_gegl_config_register() in gimp_gegl_config_new()



commit 1051082189056af29abc24288e2ce2b800325d7d
Author: Michael Natterer <mitch gimp org>
Date:   Sat Mar 19 21:08:29 2016 +0100

    app: use gimp_gegl_config_register() in gimp_gegl_config_new()
    
    instead of manually interting the new type into the table.

 app/gegl/gimp-gegl-config.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/app/gegl/gimp-gegl-config.c b/app/gegl/gimp-gegl-config.c
index 3196a98..19076c3 100644
--- a/app/gegl/gimp-gegl-config.c
+++ b/app/gegl/gimp-gegl-config.c
@@ -299,9 +299,7 @@ gimp_gegl_config_new (const gchar *operation,
             g_type_class_unref (viewable_class);
           }
 
-        g_hash_table_insert (config_types,
-                             g_strdup (operation),
-                             (gpointer) config_type);
+        gimp_gegl_config_register (operation, config_type);
       }
     }
 


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