From 53a27a44ec3180efe29ed24f31091ecfd0bda3ad Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Wed, 10 Mar 2010 11:21:08 +0100 Subject: Revert "Revert "Make links clickable in presence message and topics"" This reverts commit efb42513359f4db545e3312e3c583d07c6306418. --- libempathy-gtk/empathy-chat.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'libempathy-gtk/empathy-chat.c') diff --git a/libempathy-gtk/empathy-chat.c b/libempathy-gtk/empathy-chat.c index bec1d7704..4db9e455c 100644 --- a/libempathy-gtk/empathy-chat.c +++ b/libempathy-gtk/empathy-chat.c @@ -56,6 +56,7 @@ #include "empathy-theme-manager.h" #include "empathy-smiley-manager.h" #include "empathy-ui-utils.h" +#include "empathy-string-parser.h" #define DEBUG_FLAG EMPATHY_DEBUG_CHAT #include @@ -1212,7 +1213,12 @@ chat_property_changed_cb (EmpathyTpChat *tp_chat, if (EMP_STR_EMPTY (priv->subject)) { gtk_widget_hide (priv->hbox_topic); } else { - gtk_label_set_text (GTK_LABEL (priv->label_topic), priv->subject); + gchar *markup_text; + + markup_text = empathy_add_link_markup (priv->subject); + gtk_label_set_markup (GTK_LABEL (priv->label_topic), markup_text); + g_free (markup_text); + gtk_widget_show (priv->hbox_topic); } if (priv->block_events_timeout_id == 0) { -- cgit v1.2.3