From df9458c9728866fae499d387f3668bef11db3688 Mon Sep 17 00:00:00 2001 From: infirit Date: Sat, 12 Jul 2014 18:35:57 +0200 Subject: Un-break my previous commit --- mate-settings-daemon/main.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/mate-settings-daemon/main.c b/mate-settings-daemon/main.c index 0ecfb13..0e7a4c6 100644 --- a/mate-settings-daemon/main.c +++ b/mate-settings-daemon/main.c @@ -452,10 +452,10 @@ static void debug_changed (GSettings *settings, gchar *key, gpointer user_data) { debug = g_settings_get_boolean (settings, DEBUG_KEY); if (debug) { - g_debug ("Enable DEBUG"); + g_warning ("Enable DEBUG"); g_setenv ("G_MESSAGES_DEBUG", "all", FALSE); } else { - g_debug ("Disable DEBUG"); + g_warning ("Disable DEBUG"); g_unsetenv ("G_MESSAGES_DEBUG"); } } @@ -485,12 +485,11 @@ main (int argc, char *argv[]) { debug_settings = g_settings_new (DEBUG_SCHEMA); debug = g_settings_get_boolean (debug_settings, DEBUG_KEY); + g_signal_connect (debug_settings, "changed::" DEBUG_KEY, G_CALLBACK (debug_changed), NULL); if (debug) { g_setenv ("G_MESSAGES_DEBUG", "all", FALSE); } - - g_signal_connect (debug_settings, "changed::" DEBUG_KEY, G_CALLBACK (debug_changed), NULL); } mate_settings_profile_start ("opening gtk display"); -- cgit v1.2.1