return FALSE;
}
- gtk_test_init (argc, argv);
-
- /* gtk_test_init does not call setlocale(), so do it ourselves,
- * since running in the C locale breaks some our fancy
- * utf8 output.
- */
- setlocale (LC_ALL, "en_US.utf8");
-
return TRUE;
}
fix_settings ();
+ if (argc == 3 && strcmp (argv[1], "--generate") == 0)
+ {
+ GFile *file = g_file_new_for_commandline_arg (argv[2]);
+
+ gtk_init ();
+
+ dump_to_stdout (file);
+ g_object_unref (file);
+
+ return 0;
+ }
+
+ gtk_test_init (&argc, &argv);
+
+ /* gtk_test_init does not call setlocale(), so do it ourselves,
+ * since running in the C locale breaks some our fancy
+ * utf8 output.
+ */
+ setlocale (LC_ALL, "en_US.utf8");
+
if (argc < 2)
{
const char *basedir;
g_object_unref (dir);
}
- else if (argc == 3 && strcmp (argv[1], "--generate") == 0)
- {
- GFile *file = g_file_new_for_commandline_arg (argv[2]);
-
- dump_to_stdout (file);
-
- g_object_unref (file);
-
- return 0;
- }
else
{
guint i;
-# random seed: R02Sf794a68049c2fd91c6e2c6cd2c801ffb
-# GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation memory (GMemorySettingsBackend) for ‘gsettings-backend’
-# GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation gvfs (GDaemonVfs) for ‘gio-vfs’
window1
"dialog"
index: 0