aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDanielle Madeley <danielle.madeley@collabora.co.uk>2009-12-21 08:04:39 +0800
committerDanielle Madeley <danielle.madeley@collabora.co.uk>2009-12-21 17:55:03 +0800
commit901c4d9b608d764a894c4a4a9df803c3e06a6ab3 (patch)
treeaaf5472990ed128ca14d9cabd0ea8f199a013bc7
parent79074c4ba575f4b01782f6f498a3e9f91cd7ba21 (diff)
downloadgsoc2013-empathy-901c4d9b608d764a894c4a4a9df803c3e06a6ab3.tar
gsoc2013-empathy-901c4d9b608d764a894c4a4a9df803c3e06a6ab3.tar.gz
gsoc2013-empathy-901c4d9b608d764a894c4a4a9df803c3e06a6ab3.tar.bz2
gsoc2013-empathy-901c4d9b608d764a894c4a4a9df803c3e06a6ab3.tar.lz
gsoc2013-empathy-901c4d9b608d764a894c4a4a9df803c3e06a6ab3.tar.xz
gsoc2013-empathy-901c4d9b608d764a894c4a4a9df803c3e06a6ab3.tar.zst
gsoc2013-empathy-901c4d9b608d764a894c4a4a9df803c3e06a6ab3.zip
[EmpathyContactMenu] Replace raw Tp call with existing abstraction
This was the place I'd copied my code from. However it makes a lot of sense to use the same abstraction here too.
-rw-r--r--libempathy-gtk/empathy-contact-menu.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/libempathy-gtk/empathy-contact-menu.c b/libempathy-gtk/empathy-contact-menu.c
index 4e1adfa90..3d022a8b0 100644
--- a/libempathy-gtk/empathy-contact-menu.c
+++ b/libempathy-gtk/empathy-contact-menu.c
@@ -483,10 +483,7 @@ static void
room_sub_menu_activate_cb (GtkWidget *item,
RoomSubMenuData *data)
{
- TpHandle handle;
- GArray handles = {(gchar *) &handle, 1};
EmpathyTpChat *chat;
- TpChannel *channel;
chat = empathy_chatroom_get_tp_chat (data->chatroom);
if (chat == NULL) {
@@ -495,10 +492,8 @@ room_sub_menu_activate_cb (GtkWidget *item,
}
/* send invitation */
- handle = empathy_contact_get_handle (data->contact);
- channel = empathy_tp_chat_get_channel (chat);
- tp_cli_channel_interface_group_call_add_members (channel, -1, &handles,
- _("Inviting to this room"), NULL, NULL, NULL, NULL);
+ empathy_contact_list_add (EMPATHY_CONTACT_LIST (chat), data->contact,
+ _("Inviting you to this room"));
}
static GtkWidget *