From 49676b7823685463409a3653e00ce4707f00d226 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Sun, 20 May 2007 10:26:38 +0000 Subject: Allow to set custom function for getting groups of a contact. Make 2007-05-20 Xavier Claessens * libempathy-gtk/gossip-contact-list-store.c: Allow to set custom function for getting groups of a contact. Make possible to have groups for presence or role/affiliation in chatroom for example. * libempathy-gtk/gossip-contact-list-store.h: Allow to set custom function to handle DnD of contact. Useful when a custom function is set for groups. * src/empathy-chat-main.c: Minor fix. * TODO: * po/POTFILES.in: Updated. svn path=/trunk/; revision=76 --- src/empathy-chat-main.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/empathy-chat-main.c b/src/empathy-chat-main.c index 287766594..339c4d0fa 100644 --- a/src/empathy-chat-main.c +++ b/src/empathy-chat-main.c @@ -128,11 +128,8 @@ new_channel_cb (EmpathyChandler *chandler, g_object_unref (tp_chat); } gossip_chat_present (chat); - - goto OUT; } - - if (tp_chan->handle_type == TP_HANDLE_TYPE_CONTACT) { + else if (tp_chan->handle_type == TP_HANDLE_TYPE_CONTACT) { EmpathyContactManager *manager; EmpathyTpContactList *list; GossipContact *contact; @@ -157,7 +154,7 @@ new_channel_cb (EmpathyChandler *chandler, g_object_unref (chat); g_object_unref (manager); } - if (tp_chan->handle_type == TP_HANDLE_TYPE_ROOM) { + else if (tp_chan->handle_type == TP_HANDLE_TYPE_ROOM) { #if 0 GossipGroupChat *chat; @@ -176,7 +173,6 @@ new_channel_cb (EmpathyChandler *chandler, #endif } -OUT: g_free (id); g_object_unref (account); g_object_unref (mc); -- cgit v1.2.3