[gtk+/no-init-args: 6/10] Drop the --gtk-debug and --gtk-no-debug options



commit 72877343fdf07abb170963834008891a7f9a25ec
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Dec 27 18:49:30 2016 -0500

    Drop the --gtk-debug and --gtk-no-debug options
    
    We have environment variables that cover this.

 gtk/gtkmain.c |   30 ------------------------------
 1 files changed, 0 insertions(+), 30 deletions(-)
---
diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c
index f061db8..baa8d17 100644
--- a/gtk/gtkmain.c
+++ b/gtk/gtkmain.c
@@ -397,37 +397,7 @@ gtk_disable_setlocale (void)
 
 static GString *gtk_modules_string = NULL;
 
-#ifdef G_ENABLE_DEBUG
-static gboolean
-gtk_arg_debug_cb (const char *key, const char *value, gpointer user_data)
-{
-  debug_flags[0].flags |= g_parse_debug_string (value,
-                                                gtk_debug_keys,
-                                                G_N_ELEMENTS (gtk_debug_keys));
-
-  return TRUE;
-}
-
-static gboolean
-gtk_arg_no_debug_cb (const char *key, const char *value, gpointer user_data)
-{
-  debug_flags[0].flags &= ~g_parse_debug_string (value,
-                                                 gtk_debug_keys,
-                                                 G_N_ELEMENTS (gtk_debug_keys));
-
-  return TRUE;
-}
-#endif /* G_ENABLE_DEBUG */
-
 static const GOptionEntry gtk_args[] = {
-#ifdef G_ENABLE_DEBUG
-  { "gtk-debug",        0, 0, G_OPTION_ARG_CALLBACK, gtk_arg_debug_cb,    
-    /* Description of --gtk-debug=FLAGS in --help output */    N_("GTK+ debugging flags to set"), 
-    /* Placeholder in --gtk-debug=FLAGS in --help output */    N_("FLAGS") },
-  { "gtk-no-debug",     0, 0, G_OPTION_ARG_CALLBACK, gtk_arg_no_debug_cb, 
-    /* Description of --gtk-no-debug=FLAGS in --help output */ N_("GTK+ debugging flags to unset"), 
-    /* Placeholder in --gtk-no-debug=FLAGS in --help output */ N_("FLAGS") },
-#endif 
   { NULL }
 };
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]