No need to clear GTK_MODULES anymore
authorMatthias Clasen <mclasen@redhat.com>
Mon, 16 Apr 2018 01:32:51 +0000 (21:32 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 16 Apr 2018 02:03:50 +0000 (22:03 -0400)
Not a variable we care about nowadays.

gtk/gtktestutils.c

index 43293c9eeca4a7dd28958387b6997377fdc330b4..a105a7b27fb1a5f1aaa5881dae8505bc205a7a8d 100644 (file)
@@ -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");