[empathy] account-chooser: factor out select_account()
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] account-chooser: factor out select_account()
- Date: Fri, 28 Oct 2011 13:54:26 +0000 (UTC)
commit 0ae11712afc8dfc1231531fe097ee1debc8b0ece
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Wed Oct 26 12:13:45 2011 +0200
account-chooser: factor out select_account()
https://bugzilla.gnome.org/show_bug.cgi?id=662604
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 f743db9..3f7d70b 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)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]