[gnome-screensaver] Add more debug for lock enable



commit 8236a6c866a2e1f2b98213819c8276dfaa5e6e52
Author: William Jon McCann <jmccann redhat com>
Date:   Sat Mar 19 21:25:04 2011 -0400

    Add more debug for lock enable

 src/gs-manager.c |    1 +
 src/gs-prefs.c   |    3 ++-
 2 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-manager.c b/src/gs-manager.c
index 8789566..a6cf10c 100644
--- a/src/gs-manager.c
+++ b/src/gs-manager.c
@@ -159,6 +159,7 @@ gs_manager_set_lock_enabled (GSManager *manager,
 
         if (manager->priv->lock_enabled != lock_enabled) {
                 manager->priv->lock_enabled = lock_enabled;
+                gs_debug ("GSManager: lock-enabled=%d", lock_enabled);
         }
 }
 
diff --git a/src/gs-prefs.c b/src/gs-prefs.c
index 4afe054..85b4dcb 100644
--- a/src/gs-prefs.c
+++ b/src/gs-prefs.c
@@ -30,6 +30,7 @@
 #include <gdesktop-enums.h>
 
 #include "gs-prefs.h"
+#include "gs-debug.h"
 
 static void gs_prefs_class_init (GSPrefsClass *klass);
 static void gs_prefs_init       (GSPrefs      *prefs);
@@ -321,7 +322,7 @@ key_changed_cb (GSettings   *settings,
 
                 enabled = g_settings_get_boolean (settings, key);
                 _gs_prefs_set_lock_enabled (prefs, enabled);
-
+                gs_debug ("lock-enabled=%d",enabled);
         } else if (strcmp (key, KEY_LOCK_DISABLE) == 0) {
 
                 gboolean disabled;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]