Don't call g_type_init in tests if Glib is v 2.36 or later.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/2.4@23178 57a11ea4-9604-0410-9ed3-97b8803252fd
2.4
John Ralls 13 years ago
parent a84c47ecf4
commit 1cd42bc1b4

@ -193,7 +193,9 @@ int
main(int argc, char **argv)
{
g_setenv ("GNC_UNINSTALLED", "1", TRUE);
#ifndef HAVE_GLIB_2_36
g_type_init();
#endif
qof_init();
gnc_engine_init(0, NULL);

@ -109,7 +109,9 @@ main (int argc, char ** argv)
const char *location = g_getenv("GNC_TEST_FILES");
GDir *xml2_dir;
#ifndef HAVE_GLIB_2_36
g_type_init();
#endif
qof_init();
cashobjects_register();
do_test(qof_load_backend_library ("../.libs/", GNC_LIB_NAME),

@ -133,7 +133,9 @@ int main (int argc, char ** argv)
gtk_init(&argc, &argv);
#ifndef HAVE_GLIB_2_36
g_type_init();
#endif
pw = gnc_dialog_new("budget.glade", "SampleOptions");
gnc_dialog_set_cb(pw, apply_cb, close_cb, NULL, NULL);

Loading…
Cancel
Save