[gimp/metadata-browser] app: calling gegl_init() in tests.c early fixes the tests
- From: Roman Joost <romanofski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/metadata-browser] app: calling gegl_init() in tests.c early fixes the tests
- Date: Thu, 13 Sep 2012 00:37:37 +0000 (UTC)
commit a683a94e71368131b3a5e4be6369a308fb45202a
Author: Michael Natterer <mitch gimp org>
Date: Fri Aug 24 23:23:55 2012 +0200
app: calling gegl_init() in tests.c early fixes the tests
app/tests.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/app/tests.c b/app/tests.c
index 955f374..86d530d 100644
--- a/app/tests.c
+++ b/app/tests.c
@@ -62,7 +62,9 @@ gimp_init_for_testing (void)
{
Gimp *gimp;
+ g_type_init();
gimp_log_init ();
+ gegl_init (NULL, NULL);
gimp = gimp_new ("Unit Tested GIMP", NULL, FALSE, TRUE, TRUE, TRUE,
FALSE, TRUE, TRUE, FALSE);
@@ -71,7 +73,6 @@ gimp_init_for_testing (void)
gimp_load_config (gimp, NULL, NULL);
- gegl_init(NULL, NULL);
gimp_gegl_init (gimp);
gimp_initialize (gimp, gimp_status_func_dummy);
gimp_restore (gimp, gimp_status_func_dummy);
@@ -92,6 +93,7 @@ gimp_init_for_gui_testing_internal (gboolean show_gui,
/* from main() */
g_type_init();
gimp_log_init ();
+ gegl_init (NULL, NULL);
/* Introduce an error margin for positions written to sessionrc */
klass = g_type_class_ref (GIMP_TYPE_SESSION_INFO);
@@ -103,7 +105,6 @@ gimp_init_for_gui_testing_internal (gboolean show_gui,
gimp_set_show_gui (gimp, show_gui);
units_init (gimp);
gimp_load_config (gimp, gimprc, NULL);
- gegl_init(NULL, NULL);
gimp_gegl_init (gimp);
gui_init (gimp, TRUE);
gimp_initialize (gimp, gimp_status_func_dummy);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]