[empathy: 20/23] audio-src,mic-menu: use DEBUG macros



commit 89afdf6b8941ac525104cfb54f10174d6cb7dbcf
Author: Jonny Lamb <jonny lamb collabora co uk>
Date:   Fri Jul 29 11:09:15 2011 +0100

    audio-src,mic-menu: use DEBUG macros
    
    Signed-off-by: Jonny Lamb <jonny lamb collabora co uk>

 src/empathy-audio-src.c |    5 ++++-
 src/empathy-mic-menu.c  |    7 +++++--
 2 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/src/empathy-audio-src.c b/src/empathy-audio-src.c
index 5487fea..4c1072c 100644
--- a/src/empathy-audio-src.c
+++ b/src/empathy-audio-src.c
@@ -31,6 +31,9 @@
 
 #include "src-marshal.h"
 
+#define DEBUG_FLAG EMPATHY_DEBUG_VOIP
+#include <libempathy/empathy-debug.h>
+
 G_DEFINE_TYPE(EmpathyGstAudioSrc, empathy_audio_src, GST_TYPE_BIN)
 
 /* signal enum */
@@ -314,7 +317,7 @@ empathy_audio_src_pa_subscribe_cb (pa_context *context,
     void *userdata)
 {
   if (!success)
-    g_debug ("Failed to subscribe to PulseAudio events");
+    DEBUG ("Failed to subscribe to PulseAudio events");
 }
 
 static void
diff --git a/src/empathy-mic-menu.c b/src/empathy-mic-menu.c
index 3ebd31c..dc3d0f0 100644
--- a/src/empathy-mic-menu.c
+++ b/src/empathy-mic-menu.c
@@ -25,6 +25,9 @@
 
 #include "empathy-mic-menu.h"
 
+#define DEBUG_FLAG EMPATHY_DEBUG_VOIP
+#include <libempathy/empathy-debug.h>
+
 struct _EmpathyMicMenuPrivate
 {
   /* Borrowed ref; the call window actually owns us. */
@@ -134,7 +137,7 @@ empathy_mic_menu_change_mic_cb (GObject *source_object,
 
   if (!empathy_audio_src_change_microphone_finish (audio, result, &error))
     {
-      g_debug ("Failed to change microphone: %s", error->message);
+      DEBUG ("Failed to change microphone: %s", error->message);
       g_clear_error (&error);
 
       /* We call update here because if this change operation failed
@@ -319,7 +322,7 @@ empathy_mic_menu_get_microphones_cb (GObject *source_object,
 
   if (error != NULL)
     {
-      g_debug ("Failed to get microphone list: %s", error->message);
+      DEBUG ("Failed to get microphone list: %s", error->message);
       g_clear_error (&error);
       return;
     }



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