#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 <libempathy/empathy-debug.h>
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) {
chat_input_text_buffer_changed_cb (GtkTextBuffer *buffer,
EmpathyChat *chat)
{
- EmpathyChatPriv *priv;
GtkTextIter start, end;
gchar *str;
gboolean spell_checker = FALSE;
- priv = GET_PRIV (chat);
-
if (gtk_text_buffer_get_char_count (buffer) == 0) {
chat_composing_stop (chat);
} else {
G_CALLBACK (chat_input_populate_popup_cb),
chat);
buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (chat->input_text_view));
- g_signal_connect (buffer, "changed",
+ empathy_signal_connect_weak (buffer, "changed",
G_CALLBACK (chat_input_text_buffer_changed_cb),
- chat);
+ G_OBJECT (chat));
gtk_text_buffer_create_tag (buffer, "misspelled",
"underline", PANGO_UNDERLINE_ERROR,
NULL);