diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-08-05 18:00:31 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-08-05 21:03:43 +0800 |
commit | 508d001793fdcb91dc6305c547a9b2f205acdad1 (patch) | |
tree | b7ed5c17198a7094d4deffca5463e3e4411049ca /src | |
parent | 3aa8239213c026f5b09d50669f7a4a65c9906659 (diff) | |
download | gsoc2013-empathy-508d001793fdcb91dc6305c547a9b2f205acdad1.tar gsoc2013-empathy-508d001793fdcb91dc6305c547a9b2f205acdad1.tar.gz gsoc2013-empathy-508d001793fdcb91dc6305c547a9b2f205acdad1.tar.bz2 gsoc2013-empathy-508d001793fdcb91dc6305c547a9b2f205acdad1.tar.lz gsoc2013-empathy-508d001793fdcb91dc6305c547a9b2f205acdad1.tar.xz gsoc2013-empathy-508d001793fdcb91dc6305c547a9b2f205acdad1.tar.zst gsoc2013-empathy-508d001793fdcb91dc6305c547a9b2f205acdad1.zip |
Implement TpContact selection in EmpathyInviteParticipantDialog
https://bugzilla.gnome.org/show_bug.cgi?id=656020
Diffstat (limited to 'src')
-rw-r--r-- | src/empathy-invite-participant-dialog.c | 12 |
1 files changed, 11 insertions, 1 deletions
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; } |