app/tests: Use gtk_test_init()

This commit is contained in:
Martin Nordholts 2010-06-27 11:08:42 +02:00
parent 8d0fe6fc4a
commit 1a9eb3e923
3 changed files with 3 additions and 9 deletions

View File

@ -69,9 +69,7 @@ int main(int argc, char **argv)
gchar *dockrc_filename = NULL;
gint result = 0;
g_type_init ();
gtk_init (&argc, &argv);
g_test_init (&argc, &argv, NULL);
gtk_test_init (&argc, &argv, NULL);
/* Make sure to run this before we use any GIMP functions */
gimp_test_utils_set_gimp2_directory ("GIMP_TESTING_ABS_TOP_SRCDIR",

View File

@ -779,9 +779,7 @@ int main(int argc, char **argv)
Gimp *gimp = NULL;
gint result = -1;
g_type_init ();
gtk_init (&argc, &argv);
g_test_init (&argc, &argv, NULL);
gtk_test_init (&argc, &argv, NULL);
gimp_test_utils_set_gimp2_directory ("GIMP_TESTING_ABS_TOP_SRCDIR",
"app/tests/gimpdir");

View File

@ -873,9 +873,7 @@ main (int argc,
{
int result;
g_type_init ();
gtk_init (&argc, &argv);
g_test_init (&argc, &argv, NULL);
gtk_test_init (&argc, &argv, NULL);
gimp_test_utils_set_gimp2_directory ("GIMP_TESTING_ABS_TOP_SRCDIR",
"app/tests/gimpdir");