aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/empathy-chat-window.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/empathy-chat-window.c b/src/empathy-chat-window.c
index 278c8f044..ca509a8d6 100644
--- a/src/empathy-chat-window.c
+++ b/src/empathy-chat-window.c
@@ -356,16 +356,22 @@ chat_window_contact_menu_update (EmpathyChatWindowPriv *priv,
}
}
+static gchar *
+get_window_title_name (EmpathyChatWindowPriv *priv)
+{
+ return g_strdup (empathy_chat_get_name (priv->current_chat));
+}
+
static void
chat_window_title_update (EmpathyChatWindowPriv *priv)
{
- const gchar *name;
-
- name = empathy_chat_get_name (priv->current_chat);
+ gchar *name;
DEBUG ("Update window : Title");
+ name = get_window_title_name (priv);
gtk_window_set_title (GTK_WINDOW (priv->dialog), name);
+ g_free (name);
}
static void