diff options
author | Xavier Claessens <xclaesse@src.gnome.org> | 2007-11-04 07:58:02 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2007-11-04 07:58:02 +0800 |
commit | 655bc982bf22cd21790d05038f89477af52e4f82 (patch) | |
tree | bb7c4ef80dc6465124a4b2c1e37c20f1de622cac | |
parent | 2268caa6f387e4780708d8513d668bcebb4ea2dd (diff) | |
download | gsoc2013-empathy-655bc982bf22cd21790d05038f89477af52e4f82.tar gsoc2013-empathy-655bc982bf22cd21790d05038f89477af52e4f82.tar.gz gsoc2013-empathy-655bc982bf22cd21790d05038f89477af52e4f82.tar.bz2 gsoc2013-empathy-655bc982bf22cd21790d05038f89477af52e4f82.tar.lz gsoc2013-empathy-655bc982bf22cd21790d05038f89477af52e4f82.tar.xz gsoc2013-empathy-655bc982bf22cd21790d05038f89477af52e4f82.tar.zst gsoc2013-empathy-655bc982bf22cd21790d05038f89477af52e4f82.zip |
Better debug messages
svn path=/trunk/; revision=419
-rw-r--r-- | libempathy/empathy-contact-factory.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/libempathy/empathy-contact-factory.c b/libempathy/empathy-contact-factory.c index 7d6e6f663..5bd51c9d8 100644 --- a/libempathy/empathy-contact-factory.c +++ b/libempathy/empathy-contact-factory.c @@ -572,7 +572,8 @@ contact_factory_avatar_updated_cb (DBusGProxy *proxy, return; } - empathy_debug (DEBUG_DOMAIN, "Need to request one avatar"); + empathy_debug (DEBUG_DOMAIN, "Need to request avatar for token %s", + new_token); handles = g_array_new (FALSE, FALSE, sizeof (guint)); g_array_append_val (handles, handle); @@ -1281,20 +1282,23 @@ empathy_contact_factory_set_avatar (EmpathyContactFactory *factory, return; } - empathy_debug (DEBUG_DOMAIN, "Setting avatar on account %s", - mc_account_get_unique_name (account)); - if (data && size > 0 && size < G_MAXUINT) { GArray avatar; avatar.data = (gchar*) data; avatar.len = size; + + empathy_debug (DEBUG_DOMAIN, "Setting avatar on account %s", + mc_account_get_unique_name (account)); + tp_conn_iface_avatars_set_avatar_async (account_data->avatars_iface, &avatar, mime_type, contact_factory_set_avatar_cb, contact_factory_account_data_ref (account_data)); } else { + empathy_debug (DEBUG_DOMAIN, "Clearing avatar on account %s", + mc_account_get_unique_name (account)); tp_conn_iface_avatars_clear_avatar_async (account_data->avatars_iface, contact_factory_clear_avatar_cb, contact_factory_account_data_ref (account_data)); |