mirror of https://github.com/GNOME/gimp.git
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:
parent
f1897b655e
commit
6fe900f7a7
|
@ -717,6 +717,7 @@ gimp_option_dump_gimprc (const gchar *option_name,
|
||||||
|
|
||||||
babl_init ();
|
babl_init ();
|
||||||
gimp = g_object_new (GIMP_TYPE_GIMP, NULL);
|
gimp = g_object_new (GIMP_TYPE_GIMP, NULL);
|
||||||
|
gimp_load_config (gimp, NULL, NULL);
|
||||||
|
|
||||||
success = gimp_config_dump (format);
|
success = gimp_config_dump (format);
|
||||||
|
|
||||||
|
@ -740,6 +741,7 @@ gimp_option_dump_pdb_procedures_deprecated (const gchar *option_name,
|
||||||
|
|
||||||
babl_init ();
|
babl_init ();
|
||||||
gimp = g_object_new (GIMP_TYPE_GIMP, NULL);
|
gimp = g_object_new (GIMP_TYPE_GIMP, NULL);
|
||||||
|
gimp_load_config (gimp, NULL, NULL);
|
||||||
|
|
||||||
/* Make sure to turn on compatibility mode so deprecated procedures
|
/* Make sure to turn on compatibility mode so deprecated procedures
|
||||||
* are included
|
* are included
|
||||||
|
|
Loading…
Reference in New Issue