diff options
author | Xavier Claessens <xclaesse@src.gnome.org> | 2008-04-02 17:41:40 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2008-04-02 17:41:40 +0800 |
commit | b7ccee52fffc1dd35e9f8ff9353b0fc135fc2b85 (patch) | |
tree | 7166d75c0bfe6f058f9750d4968e0ce22420c9b0 /libempathy-gtk | |
parent | 417a0425a90041d078047c446e9a9a78d6d9576b (diff) | |
download | gsoc2013-empathy-b7ccee52fffc1dd35e9f8ff9353b0fc135fc2b85.tar gsoc2013-empathy-b7ccee52fffc1dd35e9f8ff9353b0fc135fc2b85.tar.gz gsoc2013-empathy-b7ccee52fffc1dd35e9f8ff9353b0fc135fc2b85.tar.bz2 gsoc2013-empathy-b7ccee52fffc1dd35e9f8ff9353b0fc135fc2b85.tar.lz gsoc2013-empathy-b7ccee52fffc1dd35e9f8ff9353b0fc135fc2b85.tar.xz gsoc2013-empathy-b7ccee52fffc1dd35e9f8ff9353b0fc135fc2b85.tar.zst gsoc2013-empathy-b7ccee52fffc1dd35e9f8ff9353b0fc135fc2b85.zip |
Add empathy_chat_new and don't use empathy_group/private_* in empathy.c
svn path=/trunk/; revision=836
Diffstat (limited to 'libempathy-gtk')
-rw-r--r-- | libempathy-gtk/empathy-chat.c | 6 | ||||
-rw-r--r-- | libempathy-gtk/empathy-chat.h | 2 |
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); |