aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libempathy-gtk/empathy-chat.c2
-rw-r--r--libempathy-gtk/empathy-chat.h2
-rw-r--r--src/empathy-chat-manager.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/libempathy-gtk/empathy-chat.c b/libempathy-gtk/empathy-chat.c
index 59f2b3c09..25203b46e 100644
--- a/libempathy-gtk/empathy-chat.c
+++ b/libempathy-gtk/empathy-chat.c
@@ -3923,7 +3923,7 @@ empathy_chat_get_n_messages_sending (EmpathyChat *self)
}
gchar *
-empathy_chat_get_text (EmpathyChat *self)
+empathy_chat_dup_text (EmpathyChat *self)
{
GtkTextBuffer *buffer;
GtkTextIter start, end;
diff --git a/libempathy-gtk/empathy-chat.h b/libempathy-gtk/empathy-chat.h
index 0543f3661..4b0540b20 100644
--- a/libempathy-gtk/empathy-chat.h
+++ b/libempathy-gtk/empathy-chat.h
@@ -97,7 +97,7 @@ gboolean empathy_chat_is_composing (EmpathyChat *chat);
gboolean empathy_chat_is_sms_channel (EmpathyChat *self);
guint empathy_chat_get_n_messages_sending (EmpathyChat *self);
-gchar * empathy_chat_get_text (EmpathyChat *self);
+gchar * empathy_chat_dup_text (EmpathyChat *self);
void empathy_chat_set_text (EmpathyChat *self,
const gchar *text);
diff --git a/src/empathy-chat-manager.c b/src/empathy-chat-manager.c
index 3ffd87ba7..705d70d68 100644
--- a/src/empathy-chat-manager.c
+++ b/src/empathy-chat-manager.c
@@ -444,7 +444,7 @@ empathy_chat_manager_closed_chat (EmpathyChatManager *self,
/* If there was a message saved from last time it was closed
* (perhaps by accident?) save it to our hash table so it can be
* used again when the same chat pops up. Hot. */
- message = empathy_chat_get_text (chat);
+ message = empathy_chat_dup_text (chat);
chats = g_hash_table_lookup (priv->messages,
tp_proxy_get_object_path (data->account));