mirror of https://github.com/GNOME/gimp.git
app/tests: Use gtk_test_init()
This commit is contained in:
parent
8d0fe6fc4a
commit
1a9eb3e923
|
@ -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",
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue