[empathy] add empathy_account_chooser_get_account



commit 5f90792f29e4a474e37dffc2deafcb3e8e310831
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Mon Apr 12 11:32:18 2010 +0200

    add empathy_account_chooser_get_account

 libempathy-gtk/empathy-account-chooser.c |   14 ++++++++++++++
 libempathy-gtk/empathy-account-chooser.h |    1 +
 2 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/libempathy-gtk/empathy-account-chooser.c b/libempathy-gtk/empathy-account-chooser.c
index 14ab5eb..5e261eb 100644
--- a/libempathy-gtk/empathy-account-chooser.c
+++ b/libempathy-gtk/empathy-account-chooser.c
@@ -901,3 +901,17 @@ empathy_account_chooser_is_ready (EmpathyAccountChooser *self)
 
 	return priv->ready;
 }
+
+TpAccount *
+empathy_account_chooser_get_account (EmpathyAccountChooser *chooser)
+{
+	TpAccount *account;
+
+	account = empathy_account_chooser_dup_account (chooser);
+	if (account == NULL)
+		return NULL;
+
+	g_object_unref (account);
+
+	return account;
+}
diff --git a/libempathy-gtk/empathy-account-chooser.h b/libempathy-gtk/empathy-account-chooser.h
index 042321e..f80d700 100644
--- a/libempathy-gtk/empathy-account-chooser.h
+++ b/libempathy-gtk/empathy-account-chooser.h
@@ -59,6 +59,7 @@ struct _EmpathyAccountChooserClass {
 GType          empathy_account_chooser_get_type           (void) G_GNUC_CONST;
 GtkWidget *    empathy_account_chooser_new                (void);
 TpAccount *    empathy_account_chooser_dup_account        (EmpathyAccountChooser *chooser);
+TpAccount *    empathy_account_chooser_get_account        (EmpathyAccountChooser *chooser);
 TpConnection * empathy_account_chooser_get_connection     (EmpathyAccountChooser *chooser);
 gboolean       empathy_account_chooser_set_account        (EmpathyAccountChooser *chooser,
 							   TpAccount             *account);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]