aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-chat.c6
-rw-r--r--libempathy-gtk/empathy-chat.h2
2 files changed, 7 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-chat.c b/libempathy-gtk/empathy-chat.c
index 9c6b61d27..082f33c92 100644
--- a/libempathy-gtk/empathy-chat.c
+++ b/libempathy-gtk/empathy-chat.c
@@ -1281,6 +1281,12 @@ empathy_chat_init (EmpathyChat *chat)
NULL);
}
+EmpathyChat *
+empathy_chat_new (EmpathyTpChat *tp_chat)
+{
+ return g_object_new (EMPATHY_TYPE_CHAT, "tp-chat", tp_chat, NULL);
+}
+
gboolean
empathy_chat_get_is_command (const gchar *str)
{
diff --git a/libempathy-gtk/empathy-chat.h b/libempathy-gtk/empathy-chat.h
index 113c285e0..e0b16ff3b 100644
--- a/libempathy-gtk/empathy-chat.h
+++ b/libempathy-gtk/empathy-chat.h
@@ -64,7 +64,7 @@ struct _EmpathyChatClass {
};
GType empathy_chat_get_type (void);
-
+EmpathyChat * empathy_chat_new (EmpathyTpChat *tp_chat);
EmpathyChatView * empathy_chat_get_view (EmpathyChat *chat);
void empathy_chat_clear (EmpathyChat *chat);
void empathy_chat_scroll_down (EmpathyChat *chat);