mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 22:41:43 +00:00
Drop the --gtk-modules argument
We don't need it; the environment variable is enough.
This commit is contained in:
parent
63d6e2d8e2
commit
9c52f6b3ca
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user