[empathy/mc5: 199/483] Add empathy_account_settings_owns_account()
- From: Sjoerd Simons <sjoerds src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [empathy/mc5: 199/483] Add empathy_account_settings_owns_account()
- Date: Fri, 21 Aug 2009 17:16:08 +0000 (UTC)
commit 7f8d4b20123d1f3f48ddaf404b022bdeeba5d99a
Author: Cosimo Cecchi <cosimo cecchi collabora co uk>
Date: Sat Jul 25 16:44:14 2009 +0200
Add empathy_account_settings_owns_account()
libempathy/empathy-account-settings.c | 14 ++++++++++++++
libempathy/empathy-account-settings.h | 3 +++
2 files changed, 17 insertions(+), 0 deletions(-)
---
diff --git a/libempathy/empathy-account-settings.c b/libempathy/empathy-account-settings.c
index 989d2d3..4e32dfc 100644
--- a/libempathy/empathy-account-settings.c
+++ b/libempathy/empathy-account-settings.c
@@ -1008,3 +1008,17 @@ empathy_account_settings_apply_finish (EmpathyAccountSettings *settings,
return TRUE;
}
+
+gboolean
+empathy_account_settings_owns_account (EmpathyAccountSettings *settings,
+ EmpathyAccount *account)
+{
+ EmpathyAccountSettingsPriv *priv;
+
+ g_return_val_if_fail (EMPATHY_IS_ACCOUNT_SETTINGS (settings), FALSE);
+ g_return_val_if_fail (EMPATHY_IS_ACCOUNT (account), FALSE);
+
+ priv = GET_PRIV (settings);
+
+ return (account == priv->account);
+}
diff --git a/libempathy/empathy-account-settings.h b/libempathy/empathy-account-settings.h
index d9231a5..8119879 100644
--- a/libempathy/empathy-account-settings.h
+++ b/libempathy/empathy-account-settings.h
@@ -77,6 +77,9 @@ const gchar *empathy_account_settings_get_protocol (
EmpathyAccount *empathy_account_settings_get_account (
EmpathyAccountSettings *settings);
+gboolean empathy_account_settings_owns_account (
+ EmpathyAccountSettings *settings, EmpathyAccount *account);
+
TpConnectionManagerParam *empathy_account_settings_get_tp_params (
EmpathyAccountSettings *settings);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]