diff options
author | Alban Crequy <alban.crequy@collabora.co.uk> | 2010-12-15 13:05:20 +0000 |
---|---|---|
committer | Alban Crequy <alban.crequy@collabora.co.uk> | 2010-12-15 13:07:49 +0000 |
commit | 0f339e8df2c0b2118791b7dcfeb7f1b5d0ba86e3 (patch) | |
tree | 2a2d646dbd8cc4252becc4cf18bab4dfcfc42ec0 | |
parent | 63c9b8383796bdbc0918f7f376cb7ab3960538aa (diff) |
Add urls
-rw-r--r-- | liszt/contact-view.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/liszt/contact-view.c b/liszt/contact-view.c index 70e704f19..a0521696c 100644 --- a/liszt/contact-view.c +++ b/liszt/contact-view.c @@ -84,16 +84,21 @@ get_contact_and_account (LolContactView *self, static void lol_contact_view_set_markup (LolContactView *self, const gchar *text, + const GList *urls, FolksPresenceType presence) { LolContactViewPrivate *priv = self->priv; gchar *markup; + gchar *first_url = ""; TpConnectionPresenceType tmp; TpContact *contact; const gchar *status = NULL; tmp = empathy_folks_presence_type_to_tp (presence); + if (urls && urls->data) + first_url = urls->data; + contact = get_contact_and_account (self, NULL); if (contact != NULL) @@ -102,8 +107,8 @@ lol_contact_view_set_markup (LolContactView *self, if (EMP_STR_EMPTY (status)) status = empathy_presence_get_default_message (tmp); - markup = g_strdup_printf ("%s\n<span size=\"x-small\">%s</span>", - text, status); + markup = g_strdup_printf ("%s - %s\n<span size=\"x-small\">%s</span>", + text, first_url, status); clutter_text_set_markup (CLUTTER_TEXT (priv->name_text), markup); g_free (markup); } @@ -229,6 +234,7 @@ lol_contact_view_update_individual (LolContactView *self) lol_contact_view_set_markup (self, folks_aliasable_get_alias (FOLKS_ALIASABLE (individual)), + folks_extended_info_get_urls (FOLKS_EXTENDED_INFO (individual)), presence_type); lol_contact_view_set_presence (self, individual); |