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 /libempathy/empathy-account-settings.c | |
parent | 6d59456848be4257df0724a610ef224d8c1d2e84 (diff) | |
download | gsoc2013-empathy-7f8d4b20123d1f3f48ddaf404b022bdeeba5d99a.tar.gz gsoc2013-empathy-7f8d4b20123d1f3f48ddaf404b022bdeeba5d99a.tar.zst gsoc2013-empathy-7f8d4b20123d1f3f48ddaf404b022bdeeba5d99a.zip |
Add empathy_account_settings_owns_account()
Diffstat (limited to 'libempathy/empathy-account-settings.c')
-rw-r--r-- | libempathy/empathy-account-settings.c | 14 |
1 files changed, 14 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); +} |