+ /* FIXME: seems this is never called... */
+ g_object_unref (ctx->contact);
+ g_object_unref (ctx->channel);
+
+ g_slice_free (contact_room_sub_menu_item_activate_cb_ctx, ctx);
+}
+
+static void
+contact_room_sub_menu_item_activate_cb (
+ GtkWidget *item,
+ contact_room_sub_menu_item_activate_cb_ctx *ctx)
+{
+ GArray *handles;
+ TpHandle handle;
+
+ /* send invitation */
+ handles = g_array_new (FALSE, FALSE, sizeof (TpHandle));
+ handle = empathy_contact_get_handle (ctx->contact);
+ g_array_append_val (handles, handle);
+
+ tp_cli_channel_interface_group_call_add_members (ctx->channel, -1, handles,
+ _("Inviting to this room"), NULL, NULL, NULL, NULL);
+
+ g_array_free (handles, TRUE);