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.
This commit is contained in:
Michael Natterer 2016-09-13 12:55:17 +02:00
parent f1897b655e
commit 6fe900f7a7
1 changed files with 2 additions and 0 deletions

View File

@ -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