[Xfce4-commits] <xfce4-panel:devel> Always abort on critical errors and warnings when debugging is enabled.
Nick Schermer
noreply at xfce.org
Fri Sep 25 20:02:06 CEST 2009
Updating branch refs/heads/devel
to f0ba6b248866fafe0cfe8e7271d63200f702e054 (commit)
from ece338717176aab265d1c02af96719816a44b7dc (commit)
commit f0ba6b248866fafe0cfe8e7271d63200f702e054
Author: Nick Schermer <nick at xfce.org>
Date: Fri Sep 25 10:46:58 2009 +0200
Always abort on critical errors and warnings when debugging is enabled.
panel/main.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/panel/main.c b/panel/main.c
index 59ea3cb..46cc5e2 100644
--- a/panel/main.c
+++ b/panel/main.c
@@ -139,8 +139,14 @@ main (gint argc, gchar **argv)
/* set translation domain */
xfce_textdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR, "UTF-8");
+#ifdef G_ENABLE_DEBUG
+ /* do NOT remove this line for now, If something doesn't work,
+ * fix your code instead! */
+ g_log_set_always_fatal (G_LOG_LEVEL_CRITICAL | G_LOG_LEVEL_WARNING);
+#endif
+
/* initialize gtk+ */
- if (!gtk_init_with_args (&argc, &argv, _("[ARGUMENTS...]"), option_entries, (gchar *) GETTEXT_PACKAGE, &error))
+ if (!gtk_init_with_args (&argc, &argv, _("[ARGUMENTS...]"), option_entries, GETTEXT_PACKAGE, &error))
{
if (G_LIKELY (error))
{
More information about the Xfce4-commits
mailing list