[gimp] app: always call gimp_load_config() on a newly created Gimp instance



commit 6fe900f7a77b037393b6681834f9d888c0ec1544
Author: Michael Natterer <mitch gimp org>
Date:   Tue Sep 13 12:55:17 2016 +0200

    app: always call gimp_load_config() on a newly created Gimp instance
    
    Simply creating and destroying a Gimp now creates and destroys more
    members, and some of them always need a gimp->config object.

 app/main.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/app/main.c b/app/main.c
index 5892bb0..bdc9d69 100644
--- a/app/main.c
+++ b/app/main.c
@@ -717,6 +717,7 @@ gimp_option_dump_gimprc (const gchar  *option_name,
 
       babl_init ();
       gimp = g_object_new (GIMP_TYPE_GIMP, NULL);
+      gimp_load_config (gimp, NULL, NULL);
 
       success = gimp_config_dump (format);
 
@@ -740,6 +741,7 @@ gimp_option_dump_pdb_procedures_deprecated (const gchar  *option_name,
 
   babl_init ();
   gimp = g_object_new (GIMP_TYPE_GIMP, NULL);
+  gimp_load_config (gimp, NULL, NULL);
 
   /* Make sure to turn on compatibility mode so deprecated procedures
    * are included


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