diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-11-26 00:12:02 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-11-27 23:24:59 +0800 |
commit | c09471eb2c996367eb023f430b4fa3e599c9df09 (patch) | |
tree | 216b07c92d5ec2db1544b736f21670b0df6b0e12 /src | |
parent | 02fa89520bb3b2ca00af8307f476973e8cad83c0 (diff) | |
download | gsoc2013-empathy-c09471eb2c996367eb023f430b4fa3e599c9df09.tar gsoc2013-empathy-c09471eb2c996367eb023f430b4fa3e599c9df09.tar.gz gsoc2013-empathy-c09471eb2c996367eb023f430b4fa3e599c9df09.tar.bz2 gsoc2013-empathy-c09471eb2c996367eb023f430b4fa3e599c9df09.tar.lz gsoc2013-empathy-c09471eb2c996367eb023f430b4fa3e599c9df09.tar.xz gsoc2013-empathy-c09471eb2c996367eb023f430b4fa3e599c9df09.tar.zst gsoc2013-empathy-c09471eb2c996367eb023f430b4fa3e599c9df09.zip |
factor out empathy_chat_get_name
Dup the string as we are going to use g_strdup_printf
Diffstat (limited to 'src')
-rw-r--r-- | src/empathy-chat-window.c | 12 |
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 |