summaryrefslogtreecommitdiff
path: root/gtk/gtkmain.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/gtkmain.c')
-rw-r--r--gtk/gtkmain.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c
index 732f7431e0..5f07d5e5a3 100644
--- a/gtk/gtkmain.c
+++ b/gtk/gtkmain.c
@@ -306,6 +306,11 @@ gtk_init (int *argc,
}
(*argv)[i] = NULL;
}
+ else if (strcmp ("--g-fatal-warnings", (*argv)[i]) == 0)
+ {
+ g_set_warning_handler ((GWarningFunc)g_error);
+ (*argv)[i] = NULL;
+ }
i += 1;
}