[gtk+/no-init-args: 5/10] Drop the --g-fatal-warnings argument
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/no-init-args: 5/10] Drop the --g-fatal-warnings argument
- Date: Wed, 28 Dec 2016 23:59:44 +0000 (UTC)
commit 8a816dbc1939ab662542ac26cd37a5d2620bea64
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Dec 27 18:48:02 2016 -0500
Drop the --g-fatal-warnings argument
We don't need it, GLib has an environment variable for this.
gtk/gtkmain.c | 12 ------------
1 files changed, 0 insertions(+), 12 deletions(-)
---
diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c
index bb8c1ee..f061db8 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]