diff options
author | Marco Barisione <marco.barisione@collabora.co.uk> | 2013-05-10 23:58:34 +0800 |
---|---|---|
committer | Marco Barisione <marco.barisione@collabora.co.uk> | 2013-08-20 18:03:06 +0800 |
commit | 7eae2e49e62834cfff13cc2ee10b37eaff38a6fb (patch) | |
tree | dd8ce7c22177cd14324b466c2841466c23816ff8 /libempathy/empathy-contact.c | |
parent | 6609b50bce338fdb3fe470f57727d30211c8d104 (diff) | |
download | gsoc2013-empathy-7eae2e49e62834cfff13cc2ee10b37eaff38a6fb.tar gsoc2013-empathy-7eae2e49e62834cfff13cc2ee10b37eaff38a6fb.tar.gz gsoc2013-empathy-7eae2e49e62834cfff13cc2ee10b37eaff38a6fb.tar.bz2 gsoc2013-empathy-7eae2e49e62834cfff13cc2ee10b37eaff38a6fb.tar.lz gsoc2013-empathy-7eae2e49e62834cfff13cc2ee10b37eaff38a6fb.tar.xz gsoc2013-empathy-7eae2e49e62834cfff13cc2ee10b37eaff38a6fb.tar.zst gsoc2013-empathy-7eae2e49e62834cfff13cc2ee10b37eaff38a6fb.zip |
tpaw-utils: move EMP_STR_EMPTY to tp-aw and rename it
https://bugzilla.gnome.org/show_bug.cgi?id=699492
Diffstat (limited to 'libempathy/empathy-contact.c')
-rw-r--r-- | libempathy/empathy-contact.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/libempathy/empathy-contact.c b/libempathy/empathy-contact.c index 9f8e23227..2f381a5be 100644 --- a/libempathy/empathy-contact.c +++ b/libempathy/empathy-contact.c @@ -22,6 +22,8 @@ #include "config.h" #include "empathy-contact.h" +#include <tp-account-widgets/tpaw-utils.h> + #ifdef HAVE_GEOCODE #include <geocode-glib/geocode-glib.h> #endif @@ -462,7 +464,7 @@ empathy_contact_set_id (EmpathyContact *contact, priv->id = g_strdup (id); g_object_notify (G_OBJECT (contact), "id"); - if (EMP_STR_EMPTY (priv->alias)) + if (TPAW_STR_EMPTY (priv->alias)) g_object_notify (G_OBJECT (contact), "alias"); } @@ -768,7 +770,7 @@ empathy_contact_from_tpl_contact (TpAccount *account, } } - if (!EMP_STR_EMPTY (tpl_entity_get_avatar_token (tpl_entity))) + if (!TPAW_STR_EMPTY (tpl_entity_get_avatar_token (tpl_entity))) contact_load_avatar_cache (retval, tpl_entity_get_avatar_token (tpl_entity)); @@ -812,12 +814,12 @@ empathy_contact_get_alias (EmpathyContact *contact) priv = GET_PRIV (contact); - if (!EMP_STR_EMPTY (priv->alias)) + if (!TPAW_STR_EMPTY (priv->alias)) alias = priv->alias; else if (priv->tp_contact != NULL) alias = tp_contact_get_alias (priv->tp_contact); - if (!EMP_STR_EMPTY (alias)) + if (!TPAW_STR_EMPTY (alias)) return alias; else return empathy_contact_get_id (contact); @@ -1185,7 +1187,7 @@ empathy_contact_get_status (EmpathyContact *contact) g_return_val_if_fail (EMPATHY_IS_CONTACT (contact), ""); message = empathy_contact_get_presence_message (contact); - if (!EMP_STR_EMPTY (message)) + if (!TPAW_STR_EMPTY (message)) return message; return empathy_presence_get_default_message ( @@ -1330,7 +1332,7 @@ contact_get_avatar_filename (EmpathyContact *contact, gchar *avatar_file; gchar *token_escaped; - if (EMP_STR_EMPTY (empathy_contact_get_id (contact))) + if (TPAW_STR_EMPTY (empathy_contact_get_id (contact))) return NULL; token_escaped = tp_escape_as_identifier (token); @@ -1363,7 +1365,7 @@ contact_load_avatar_cache (EmpathyContact *contact, GError *error = NULL; g_return_val_if_fail (EMPATHY_IS_CONTACT (contact), FALSE); - g_return_val_if_fail (!EMP_STR_EMPTY (token), FALSE); + g_return_val_if_fail (!TPAW_STR_EMPTY (token), FALSE); /* Load the avatar from file if it exists */ filename = contact_get_avatar_filename (contact, token); |