aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-contact-widget.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2010-03-10 18:21:08 +0800
committerXavier Claessens <xclaesse@gmail.com>2010-03-10 19:04:57 +0800
commit53a27a44ec3180efe29ed24f31091ecfd0bda3ad (patch)
tree875fbd1a8f1c8d19b95b131dbb399bd25860f8e4 /libempathy-gtk/empathy-contact-widget.c
parent77c57d35a578027d6f5ffea14483ba8762ad995a (diff)
downloadgsoc2013-empathy-53a27a44ec3180efe29ed24f31091ecfd0bda3ad.tar
gsoc2013-empathy-53a27a44ec3180efe29ed24f31091ecfd0bda3ad.tar.gz
gsoc2013-empathy-53a27a44ec3180efe29ed24f31091ecfd0bda3ad.tar.bz2
gsoc2013-empathy-53a27a44ec3180efe29ed24f31091ecfd0bda3ad.tar.lz
gsoc2013-empathy-53a27a44ec3180efe29ed24f31091ecfd0bda3ad.tar.xz
gsoc2013-empathy-53a27a44ec3180efe29ed24f31091ecfd0bda3ad.tar.zst
gsoc2013-empathy-53a27a44ec3180efe29ed24f31091ecfd0bda3ad.zip
Revert "Revert "Make links clickable in presence message and topics""
This reverts commit efb42513359f4db545e3312e3c583d07c6306418.
Diffstat (limited to 'libempathy-gtk/empathy-contact-widget.c')
-rw-r--r--libempathy-gtk/empathy-contact-widget.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/libempathy-gtk/empathy-contact-widget.c b/libempathy-gtk/empathy-contact-widget.c
index 9cb493fbe..696a8cda4 100644
--- a/libempathy-gtk/empathy-contact-widget.c
+++ b/libempathy-gtk/empathy-contact-widget.c
@@ -47,6 +47,7 @@
#include "empathy-avatar-chooser.h"
#include "empathy-avatar-image.h"
#include "empathy-ui-utils.h"
+#include "empathy-string-parser.h"
#include "empathy-kludge-label.h"
#define DEBUG_FLAG EMPATHY_DEBUG_CONTACT
@@ -948,8 +949,15 @@ contact_widget_name_notify_cb (EmpathyContactWidget *information)
static void
contact_widget_presence_notify_cb (EmpathyContactWidget *information)
{
- gtk_label_set_text (GTK_LABEL (information->label_status),
- empathy_contact_get_status (information->contact));
+ const gchar *status;
+ gchar *markup_text = NULL;
+
+ status = empathy_contact_get_status (information->contact);
+ if (status != NULL)
+ markup_text = empathy_add_link_markup (status);
+ gtk_label_set_markup (GTK_LABEL (information->label_status), markup_text);
+ g_free (markup_text);
+
gtk_image_set_from_icon_name (GTK_IMAGE (information->image_state),
empathy_icon_name_for_contact (information->contact),
GTK_ICON_SIZE_BUTTON);