aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGuillaume Desmottes <gdesmott@gnome.org>2009-02-13 18:26:07 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-02-13 18:26:07 +0800
commitb38fe979d8ce68183ef2e34b79f831cde36789dc (patch)
treedbcaf9e2e49ae7d4da7b970aeed5478b87f96e53 /src
parentb8a9bd2a39294c7e4e1b943f5ceab09171fda243 (diff)
downloadgsoc2013-empathy-b38fe979d8ce68183ef2e34b79f831cde36789dc.tar
gsoc2013-empathy-b38fe979d8ce68183ef2e34b79f831cde36789dc.tar.gz
gsoc2013-empathy-b38fe979d8ce68183ef2e34b79f831cde36789dc.tar.bz2
gsoc2013-empathy-b38fe979d8ce68183ef2e34b79f831cde36789dc.tar.lz
gsoc2013-empathy-b38fe979d8ce68183ef2e34b79f831cde36789dc.tar.xz
gsoc2013-empathy-b38fe979d8ce68183ef2e34b79f831cde36789dc.tar.zst
gsoc2013-empathy-b38fe979d8ce68183ef2e34b79f831cde36789dc.zip
invite_dialog_response_cb: use TpChannel API instead of EmpathyTpGroup one
From: Guillaume Desmottes <gdesmott@gnome.org> svn path=/trunk/; revision=2452
Diffstat (limited to 'src')
-rw-r--r--src/empathy-event-manager.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/empathy-event-manager.c b/src/empathy-event-manager.c
index f8795b801..8ad5b0495 100644
--- a/src/empathy-event-manager.c
+++ b/src/empathy-event-manager.c
@@ -639,8 +639,8 @@ invite_dialog_response_cb (GtkDialog *dialog,
{
EmpathyTpChat *tp_chat;
TpChannel *channel;
- EmpathyTpGroup *group;
- EmpathyContact *self_contact;
+ TpHandle self_handle;
+ GArray *members;
gtk_widget_destroy (GTK_WIDGET (approval->dialog));
approval->dialog = NULL;
@@ -664,16 +664,16 @@ invite_dialog_response_cb (GtkDialog *dialog,
/* join the room */
channel = empathy_tp_chat_get_channel (tp_chat);
- group = empathy_tp_group_new (channel);
- empathy_run_until_ready (group);
+ self_handle = tp_channel_group_get_self_handle (channel);
+ members = g_array_sized_new (FALSE, FALSE, sizeof (TpHandle), 1);
+ g_array_append_val (members, self_handle);
- self_contact = empathy_tp_group_get_self_contact (group);
- empathy_tp_group_add_member (group, self_contact, NULL);
+ tp_cli_channel_interface_group_call_add_members (channel, -1, members,
+ "", NULL, NULL, NULL, NULL);
empathy_dispatch_operation_approve (approval->operation);
- g_object_unref (group);
- g_object_unref (self_contact);
+ g_array_free (members, TRUE);
}
static void