aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-avatar.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-05-01 05:44:38 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-05-01 05:44:38 +0800
commit692886962aec6022d4fab9cdbd9867f2acd7f75c (patch)
treef0db8cc8325ed3b377d5663c7377db6967e41e8b /libempathy/empathy-avatar.c
parentfb06002dc6fcf523f22f671aeaf22054515e926a (diff)
downloadgsoc2013-empathy-692886962aec6022d4fab9cdbd9867f2acd7f75c.tar
gsoc2013-empathy-692886962aec6022d4fab9cdbd9867f2acd7f75c.tar.gz
gsoc2013-empathy-692886962aec6022d4fab9cdbd9867f2acd7f75c.tar.bz2
gsoc2013-empathy-692886962aec6022d4fab9cdbd9867f2acd7f75c.tar.lz
gsoc2013-empathy-692886962aec6022d4fab9cdbd9867f2acd7f75c.tar.xz
gsoc2013-empathy-692886962aec6022d4fab9cdbd9867f2acd7f75c.tar.zst
gsoc2013-empathy-692886962aec6022d4fab9cdbd9867f2acd7f75c.zip
Make use of tp-glib debug system.
svn path=/trunk/; revision=1066
Diffstat (limited to 'libempathy/empathy-avatar.c')
-rw-r--r--libempathy/empathy-avatar.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/libempathy/empathy-avatar.c b/libempathy/empathy-avatar.c
index f03178ba6..41395d6e9 100644
--- a/libempathy/empathy-avatar.c
+++ b/libempathy/empathy-avatar.c
@@ -20,15 +20,16 @@
* Authors: Xavier Claessens <xclaesse@gmail.com>
*/
+
#include "config.h"
#include <telepathy-glib/util.h>
#include "empathy-avatar.h"
#include "empathy-utils.h"
-#include "empathy-debug.h"
-#define DEBUG_DOMAIN "Avatar"
+#define DEBUG_FLAG EMPATHY_DEBUG_OTHER
+#include "empathy-debug.h"
GType
empathy_avatar_get_type (void)
@@ -109,12 +110,11 @@ empathy_avatar_new (const guchar *data,
filename = avatar_get_filename (token);
if (!g_file_test (filename, G_FILE_TEST_EXISTS)) {
if (!g_file_set_contents (filename, data, len, &error)) {
- empathy_debug (DEBUG_DOMAIN,
- "Failed to save avatar in cache: %s",
- error ? error->message : "No error given");
+ DEBUG ("Failed to save avatar in cache: %s",
+ error ? error->message : "No error given");
g_clear_error (&error);
} else {
- empathy_debug (DEBUG_DOMAIN, "Avatar saved to %s", filename);
+ DEBUG ("Avatar saved to %s", filename);
}
}
g_free (filename);
@@ -137,15 +137,14 @@ empathy_avatar_new_from_cache (const gchar *token)
filename = avatar_get_filename (token);
if (g_file_test (filename, G_FILE_TEST_EXISTS)) {
if (!g_file_get_contents (filename, &data, &len, &error)) {
- empathy_debug (DEBUG_DOMAIN,
- "Failed to load avatar from cache: %s",
- error ? error->message : "No error given");
+ DEBUG ("Failed to load avatar from cache: %s",
+ error ? error->message : "No error given");
g_clear_error (&error);
}
}
if (data) {
- empathy_debug (DEBUG_DOMAIN, "Avatar loaded from %s", filename);
+ DEBUG ("Avatar loaded from %s", filename);
avatar = avatar_new (data, len, NULL, g_strdup (token));
}