diff options
author | Matthias Clasen <mclasen@redhat.com> | 2018-04-15 21:32:51 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2018-04-15 22:03:50 -0400 |
commit | 3e9a68be83308272eb81bcf66942b14dd07effeb (patch) | |
tree | 977ddbb49725f9c831b6591354005ddd5169fe98 | |
parent | 651e7aa6a140e0816518ccfbc82dfa36e26bae93 (diff) | |
download | gtk+-3e9a68be83308272eb81bcf66942b14dd07effeb.tar.gz |
No need to clear GTK_MODULES anymore
Not a variable we care about nowadays.
-rw-r--r-- | gtk/gtktestutils.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/gtk/gtktestutils.c b/gtk/gtktestutils.c index 43293c9eec..a105a7b27f 100644 --- a/gtk/gtktestutils.c +++ b/gtk/gtktestutils.c @@ -64,9 +64,8 @@ * * It will in turn call g_test_init() and gtk_init() to properly * initialize the testing framework and graphical toolkit. It’ll - * also set the program’s locale to “C” and prevent loading of rc - * files and Gtk+ modules. This is done to make tets program - * environments as deterministic as possible. + * also set the program’s locale to “C”. This is done to make test + * program environments as deterministic as possible. * * Like gtk_init() and g_test_init(), any known arguments will be * processed and stripped from @argc and @argv. @@ -77,16 +76,6 @@ gtk_test_init (int *argcp, ...) { g_test_init (argcp, argvp, NULL); - /* - enter C locale - * - call g_test_init(); - * - call gtk_init(); - * - prevent RC files from loading; - * - prevent Gtk modules from loading; - * - supply mock object for GtkSettings - * FUTURE TODO: - * - this function could install a mock object around GtkSettings - */ - g_setenv ("GTK_MODULES", "", TRUE); gtk_disable_setlocale(); setlocale (LC_ALL, "C"); g_test_bug_base ("http://bugzilla.gnome.org/show_bug.cgi?id=%s"); |