diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-10-26 18:13:45 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-10-28 21:52:17 +0800 |
commit | 0ae11712afc8dfc1231531fe097ee1debc8b0ece (patch) | |
tree | 91d3a075a01a844703fe59feb45e1be36ea32ad5 /libempathy-gtk | |
parent | 5c4c3ec113984d8ae5a1f68513da64b0eb901841 (diff) | |
download | gsoc2013-empathy-0ae11712afc8dfc1231531fe097ee1debc8b0ece.tar gsoc2013-empathy-0ae11712afc8dfc1231531fe097ee1debc8b0ece.tar.gz gsoc2013-empathy-0ae11712afc8dfc1231531fe097ee1debc8b0ece.tar.bz2 gsoc2013-empathy-0ae11712afc8dfc1231531fe097ee1debc8b0ece.tar.lz gsoc2013-empathy-0ae11712afc8dfc1231531fe097ee1debc8b0ece.tar.xz gsoc2013-empathy-0ae11712afc8dfc1231531fe097ee1debc8b0ece.tar.zst gsoc2013-empathy-0ae11712afc8dfc1231531fe097ee1debc8b0ece.zip |
account-chooser: factor out select_account()
https://bugzilla.gnome.org/show_bug.cgi?id=662604
Diffstat (limited to 'libempathy-gtk')
-rw-r--r-- | libempathy-gtk/empathy-account-chooser.c | 29 |
1 files changed, 18 insertions, 11 deletions
diff --git a/libempathy-gtk/empathy-account-chooser.c b/libempathy-gtk/empathy-account-chooser.c index f743db99e..3f7d70b5d 100644 --- a/libempathy-gtk/empathy-account-chooser.c +++ b/libempathy-gtk/empathy-account-chooser.c @@ -529,17 +529,8 @@ empathy_account_chooser_get_connection (EmpathyAccountChooser *self) return connection; } -/** - * empathy_account_chooser_set_account: - * @self: an #EmpathyAccountChooser - * @account: a #TpAccount - * - * Sets the currently selected account to @account, if it exists in the list. - * - * Return value: whether the chooser was set to @account. - */ -gboolean -empathy_account_chooser_set_account (EmpathyAccountChooser *self, +static gboolean +select_account (EmpathyAccountChooser *self, TpAccount *account) { GtkComboBox *combobox; @@ -566,6 +557,22 @@ empathy_account_chooser_set_account (EmpathyAccountChooser *self, return data.set; } +/** + * empathy_account_chooser_set_account: + * @self: an #EmpathyAccountChooser + * @account: a #TpAccount + * + * Sets the currently selected account to @account, if it exists in the list. + * + * Return value: whether the chooser was set to @account. + */ +gboolean +empathy_account_chooser_set_account (EmpathyAccountChooser *self, + TpAccount *account) +{ + return select_account (self, account); +} + void empathy_account_chooser_set_all (EmpathyAccountChooser *self) { |