aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-04-12 17:32:18 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-04-12 17:35:25 +0800
commit5f90792f29e4a474e37dffc2deafcb3e8e310831 (patch)
tree3cec04ee9ffea06f70f291521c0fb17579a47ca0
parent5531c75fbba792d0b6af2ba8e72fdced6e67ca74 (diff)
downloadgsoc2013-empathy-5f90792f29e4a474e37dffc2deafcb3e8e310831.tar
gsoc2013-empathy-5f90792f29e4a474e37dffc2deafcb3e8e310831.tar.gz
gsoc2013-empathy-5f90792f29e4a474e37dffc2deafcb3e8e310831.tar.bz2
gsoc2013-empathy-5f90792f29e4a474e37dffc2deafcb3e8e310831.tar.lz
gsoc2013-empathy-5f90792f29e4a474e37dffc2deafcb3e8e310831.tar.xz
gsoc2013-empathy-5f90792f29e4a474e37dffc2deafcb3e8e310831.tar.zst
gsoc2013-empathy-5f90792f29e4a474e37dffc2deafcb3e8e310831.zip
add empathy_account_chooser_get_account
-rw-r--r--libempathy-gtk/empathy-account-chooser.c14
-rw-r--r--libempathy-gtk/empathy-account-chooser.h1
2 files changed, 15 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-account-chooser.c b/libempathy-gtk/empathy-account-chooser.c
index 14ab5ebe1..5e261ebdb 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 042321ec2..f80d7003c 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);