aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-account-chooser.c
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 /libempathy-gtk/empathy-account-chooser.c
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
Diffstat (limited to 'libempathy-gtk/empathy-account-chooser.c')
-rw-r--r--libempathy-gtk/empathy-account-chooser.c14
1 files changed, 14 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;
+}