diff options
author | Matthias Clasen <mclasen@redhat.com> | 2016-12-27 18:48:02 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2017-01-19 13:21:12 -0500 |
commit | 4cfcca7997c3f91a5a020882d0ad2ba69b3259bd (patch) | |
tree | c9b2191f53d66ecc04674fcd1cf55b1224c32e73 | |
parent | 9c52f6b3cad4b9e8c7e699bcb5a3f7895f4d2365 (diff) | |
download | gtk+-4cfcca7997c3f91a5a020882d0ad2ba69b3259bd.tar.gz |
Drop the --g-fatal-warnings argument
We don't need it, GLib has an environment variable for this.
-rw-r--r-- | gtk/gtkmain.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c index 691c5892e1..69b5c9ccf5 100644 --- a/gtk/gtkmain.c +++ b/gtk/gtkmain.c @@ -396,7 +396,6 @@ gtk_disable_setlocale (void) #endif static GString *gtk_modules_string = NULL; -static gboolean g_fatal_warnings = FALSE; #ifdef G_ENABLE_DEBUG static gboolean @@ -421,8 +420,6 @@ gtk_arg_no_debug_cb (const char *key, const char *value, gpointer user_data) #endif /* G_ENABLE_DEBUG */ static const GOptionEntry gtk_args[] = { - { "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 { "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"), @@ -686,15 +683,6 @@ do_post_parse_initialization (int *argc, signal (SIGPIPE, SIG_IGN); #endif - if (g_fatal_warnings) - { - GLogLevelFlags fatal_mask; - - fatal_mask = g_log_set_always_fatal (G_LOG_FATAL_MASK); - fatal_mask |= G_LOG_LEVEL_WARNING | G_LOG_LEVEL_CRITICAL; - g_log_set_always_fatal (fatal_mask); - } - if (debug_flags[0].flags & GTK_DEBUG_UPDATES) gtk_debug_updates_set_enabled (TRUE); |