aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2007-05-19 05:50:47 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2007-05-19 05:50:47 +0800
commit20ce0c962a960e39216b06bdf2198dfd83319278 (patch)
tree7c68fd6c1fe32771ae80c60351247ff810c395e1 /src
parent8af020a730b144f60c61a55be9e1542e588cf150 (diff)
downloadgsoc2013-empathy-20ce0c962a960e39216b06bdf2198dfd83319278.tar
gsoc2013-empathy-20ce0c962a960e39216b06bdf2198dfd83319278.tar.gz
gsoc2013-empathy-20ce0c962a960e39216b06bdf2198dfd83319278.tar.bz2
gsoc2013-empathy-20ce0c962a960e39216b06bdf2198dfd83319278.tar.lz
gsoc2013-empathy-20ce0c962a960e39216b06bdf2198dfd83319278.tar.xz
gsoc2013-empathy-20ce0c962a960e39216b06bdf2198dfd83319278.tar.zst
gsoc2013-empathy-20ce0c962a960e39216b06bdf2198dfd83319278.zip
EmpathyContactList is now an interface implemented by
* libempathy-gtk/gossip-private-chat.h: * libempathy-gtk/gossip-contact-list.c: * libempathy-gtk/gossip-chat.c: * libempathy-gtk/gossip-chat.h: * libempathy-gtk/gossip-chat-window.c: * libempathy-gtk/Makefile.am: * libempathy-gtk/gossip-chat-view.c: * libempathy-gtk/gossip-private-chat.c: * src/empathy-chat-main.c: * libempathy/gossip-utils.c: * libempathy/gossip-contact.h: * libempathy/empathy-tp-chat.c: * libempathy/gossip-utils.h: * libempathy/empathy-contact-manager.c: * libempathy/empathy-contact-manager.h: * libempathy/empathy-tp-contact-list.c: * libempathy/empathy-tp-contact-list.h: * libempathy/empathy-tp-chatroom.c: * libempathy/empathy-tp-chatroom.h: * libempathy/empathy-contact-list.c: * libempathy/empathy-contact-list.h: * libempathy/Makefile.am: * libempathy/gossip-contact.c: EmpathyContactList is now an interface implemented by EmpathyTpContactList, EmpathyContactManager and EmpathyTpChatroom. GossipContactList use that interface to display a treeview. svn path=/trunk/; revision=72
Diffstat (limited to 'src')
-rw-r--r--src/empathy-chat-main.c22
1 files changed, 20 insertions, 2 deletions
diff --git a/src/empathy-chat-main.c b/src/empathy-chat-main.c
index 7750b0b3f..287766594 100644
--- a/src/empathy-chat-main.c
+++ b/src/empathy-chat-main.c
@@ -134,14 +134,14 @@ new_channel_cb (EmpathyChandler *chandler,
if (tp_chan->handle_type == TP_HANDLE_TYPE_CONTACT) {
EmpathyContactManager *manager;
- EmpathyContactList *list;
+ EmpathyTpContactList *list;
GossipContact *contact;
GossipPrivateChat *chat;
/* We have a new private chat channel */
manager = empathy_contact_manager_new ();
list = empathy_contact_manager_get_list (manager, account);
- contact = empathy_contact_list_get_from_handle (list, tp_chan->handle);
+ contact = empathy_tp_contact_list_get_from_handle (list, tp_chan->handle);
chat = gossip_private_chat_new_with_channel (contact, tp_chan);
g_object_weak_ref (G_OBJECT (chat),
@@ -157,6 +157,24 @@ new_channel_cb (EmpathyChandler *chandler,
g_object_unref (chat);
g_object_unref (manager);
}
+ if (tp_chan->handle_type == TP_HANDLE_TYPE_ROOM) {
+#if 0
+ GossipGroupChat *chat;
+
+ /* We have a new group chat channel */
+ chat = gossip_group_chat_new (account, tp_chan);
+ g_object_weak_ref (G_OBJECT (chat),
+ (GWeakNotify) chat_finalized_cb,
+ NULL);
+
+ exit_timeout_stop ();
+ chat_count++;
+
+ gossip_chat_present (GOSSIP_CHAT (chat));
+
+ g_object_unref (chat);
+#endif
+ }
OUT:
g_free (id);