From 508d001793fdcb91dc6305c547a9b2f205acdad1 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Fri, 5 Aug 2011 12:00:31 +0200 Subject: Implement TpContact selection in EmpathyInviteParticipantDialog https://bugzilla.gnome.org/show_bug.cgi?id=656020 --- src/empathy-invite-participant-dialog.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/empathy-invite-participant-dialog.c b/src/empathy-invite-participant-dialog.c index eedc6afab..4023ebacd 100644 --- a/src/empathy-invite-participant-dialog.c +++ b/src/empathy-invite-participant-dialog.c @@ -284,6 +284,16 @@ TpContact * empathy_invite_participant_dialog_get_selected ( EmpathyInviteParticipantDialog *self) { - return empathy_contact_chooser_get_selected ( + FolksIndividual *individual; + TpContact *contact; + + individual = empathy_contact_chooser_dup_selected ( EMPATHY_CONTACT_CHOOSER (self->priv->chooser)); + if (individual == NULL) + return NULL; + + contact = get_tp_contact_for_chat (self, individual); + + g_object_unref (individual); + return contact; } -- cgit v1.2.3