diff options
author | Cosimo Cecchi <cosimo.cecchi@collabora.co.uk> | 2009-07-25 22:44:14 +0800 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2009-07-30 06:13:20 +0800 |
commit | 7f8d4b20123d1f3f48ddaf404b022bdeeba5d99a (patch) | |
tree | 369cf7770131ecd9c1fbb5618b4d3ad9f79b7b72 | |
parent | 6d59456848be4257df0724a610ef224d8c1d2e84 (diff) | |
download | gsoc2013-empathy-7f8d4b20123d1f3f48ddaf404b022bdeeba5d99a.tar gsoc2013-empathy-7f8d4b20123d1f3f48ddaf404b022bdeeba5d99a.tar.gz gsoc2013-empathy-7f8d4b20123d1f3f48ddaf404b022bdeeba5d99a.tar.bz2 gsoc2013-empathy-7f8d4b20123d1f3f48ddaf404b022bdeeba5d99a.tar.lz gsoc2013-empathy-7f8d4b20123d1f3f48ddaf404b022bdeeba5d99a.tar.xz gsoc2013-empathy-7f8d4b20123d1f3f48ddaf404b022bdeeba5d99a.tar.zst gsoc2013-empathy-7f8d4b20123d1f3f48ddaf404b022bdeeba5d99a.zip |
Add empathy_account_settings_owns_account()
-rw-r--r-- | libempathy/empathy-account-settings.c | 14 | ||||
-rw-r--r-- | 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 989d2d355..4e32dfcfa 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 d9231a50a..8119879cc 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); |