]> git.0d.be Git - empathy.git/blobdiff - libempathy/empathy-debug.c
Center the 'smiley images' inside the menu items
[empathy.git] / libempathy / empathy-debug.c
index 4f624f8e198016bbfcac087215e5c70c1712752a..d919743eb76ad022664708c7db6b8bb2f39bce95 100644 (file)
  */
 
 #include "config.h"
-
-#include <errno.h>
-#include <fcntl.h>
-#include <stdarg.h>
-#include <sys/stat.h>
-#include <unistd.h>
-
-#include <glib.h>
-#include <glib/gstdio.h>
-
-#include <telepathy-glib/debug.h>
-#include <telepathy-glib/debug-sender.h>
-
 #include "empathy-debug.h"
 
+#include <tp-account-widgets/tpaw-debug.h>
+
 #ifdef ENABLE_DEBUG
 
 static EmpathyDebugFlags flags = 0;
@@ -43,7 +32,6 @@ static GDebugKey keys[] = {
   { "Chat", EMPATHY_DEBUG_CHAT },
   { "Contact", EMPATHY_DEBUG_CONTACT },
   { "Account", EMPATHY_DEBUG_ACCOUNT },
-  { "Irc", EMPATHY_DEBUG_IRC },
   { "Dispatcher", EMPATHY_DEBUG_DISPATCHER },
   { "Ft", EMPATHY_DEBUG_FT },
   { "Location", EMPATHY_DEBUG_LOCATION },
@@ -54,6 +42,7 @@ static GDebugKey keys[] = {
   { "Voip", EMPATHY_DEBUG_VOIP },
   { "Tls", EMPATHY_DEBUG_TLS },
   { "Sasl", EMPATHY_DEBUG_SASL },
+  { "Camera", EMPATHY_DEBUG_CAMERA },
   { 0, }
 };
 
@@ -71,6 +60,7 @@ empathy_debug_set_flags (const gchar *flags_string)
   for (nkeys = 0; keys[nkeys].value; nkeys++);
 
   tp_debug_set_flags (flags_string);
+  tpaw_debug_set_flags (flags_string);
 
   if (flags_string)
       debug_set_flags (g_parse_debug_string (flags_string, keys, nkeys));
@@ -111,7 +101,7 @@ empathy_debug_free (void)
   if (flag_to_keys == NULL)
     return;
 
-  g_hash_table_destroy (flag_to_keys);
+  g_hash_table_unref (flag_to_keys);
   flag_to_keys = NULL;
 }