From 63bc73ed30d97c8ecfb1be4bc19c3e30e9aaddf2 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Sat, 30 Jun 2007 21:12:20 +0000 Subject: Fix a leaked ref. 2007-06-30 Xavier Claessens * libempathy-gtk/empathy-account-widget-generic.c: Fix a leaked ref. * src/empathy.c: If we get a chatroom we have to create an EmpathyTpChatroom object. * src/Makefile.am: Fix build system, programs links to libempathy-gtk and libempathy. * configure.ac: libempathy does not depends on libgnome-vfs. * libempathy-gtk/empathy-status-icon.c: * libempathy-gtk/empathy-chat.c: * libempathy/empathy-tp-chat.c: * libempathy/empathy-tp-chat.h: * libempathy/empathy-filter.c: * libempathy/empathy-filter.h: * libempathy/empathy-filter.xml: * libempathy/Makefile.am: Filter incoming text channels and make status icon flash when there we receive a new message. Dispatch the channel only when we get a message and the user click on the icon. svn path=/trunk/; revision=175 --- src/empathy.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/empathy.c') diff --git a/src/empathy.c b/src/empathy.c index 6ca47192d..416d2134d 100644 --- a/src/empathy.c +++ b/src/empathy.c @@ -43,6 +43,7 @@ #include #include #include +#include #include #include #include @@ -117,7 +118,11 @@ new_channel_cb (EmpathyChandler *chandler, EmpathyTpChat *tp_chat; /* The chat died, give him the new text channel */ - tp_chat = empathy_tp_chat_new (account, tp_chan); + if (empathy_chat_is_group_chat (chat)) { + tp_chat = EMPATHY_TP_CHAT (empathy_tp_chatroom_new (account, tp_chan)); + } else { + tp_chat = empathy_tp_chat_new (account, tp_chan); + } empathy_chat_set_tp_chat (chat, tp_chat); g_object_unref (tp_chat); } -- cgit v1.2.3