summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2016-12-27 18:46:45 -0500
committerMatthias Clasen <mclasen@redhat.com>2017-01-19 13:21:12 -0500
commit9c52f6b3cad4b9e8c7e699bcb5a3f7895f4d2365 (patch)
tree73d20fb535789c22017021cfabd6386d9bdaa106 /gtk
parent63d6e2d8e2319de68edf91560c4b375f87544fe7 (diff)
downloadgtk+-9c52f6b3cad4b9e8c7e699bcb5a3f7895f4d2365.tar.gz
Drop the --gtk-modules argument
We don't need it; the environment variable is enough.
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtkmain.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c
index 0a619202f9..691c5892e1 100644
--- a/gtk/gtkmain.c
+++ b/gtk/gtkmain.c
@@ -420,26 +420,7 @@ gtk_arg_no_debug_cb (const char *key, const char *value, gpointer user_data)
}
#endif /* G_ENABLE_DEBUG */
-static gboolean
-gtk_arg_module_cb (const char *key, const char *value, gpointer user_data)
-{
- if (value && *value)
- {
- if (gtk_modules_string)
- g_string_append_c (gtk_modules_string, G_SEARCHPATH_SEPARATOR);
- else
- gtk_modules_string = g_string_new (NULL);
-
- g_string_append (gtk_modules_string, value);
- }
-
- return TRUE;
-}
-
static const GOptionEntry gtk_args[] = {
- { "gtk-module", 0, 0, G_OPTION_ARG_CALLBACK, gtk_arg_module_cb,
- /* Description of --gtk-module=MODULES in --help output */ N_("Load additional GTK+ modules"),
- /* Placeholder in --gtk-module=MODULES in --help output */ N_("MODULES") },
{ "g-fatal-warnings", 0, 0, G_OPTION_ARG_NONE, &g_fatal_warnings,
/* Description of --g-fatal-warnings in --help output */ N_("Make all warnings fatal"), NULL },
#ifdef G_ENABLE_DEBUG