summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVivek Dasmohapatra <vivek@collabora.co.uk>2010-09-13 20:33:46 +0100
committerVivek Dasmohapatra <vivek@collabora.co.uk>2010-09-13 21:50:20 +0100
commit1d0ed399604c64ddf506eb5026b8b04da5c8681d (patch)
tree84e354e1ecd6f02ef1a08d4eea122a7c76223f5b
parent4a1ef90e2016b631dd606facb12096b7b8b9dec0 (diff)
downloadtelepathy-mission-control-1d0ed399604c64ddf506eb5026b8b04da5c8681d.tar.gz
Implement getting integers from the store
-rw-r--r--src/plugin-account.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/plugin-account.c b/src/plugin-account.c
index 5c1624b3..728c3a2e 100644
--- a/src/plugin-account.c
+++ b/src/plugin-account.c
@@ -539,6 +539,16 @@ _storage_get_boolean (McdStorage *storage,
return g_key_file_get_boolean (self->keyfile, account, key, NULL);
}
+static gint
+_storage_get_integer (McdStorage *storage,
+ const gchar *account,
+ const gchar *key)
+{
+ McdPluginAccountManager *self = MCD_PLUGIN_ACCOUNT_MANAGER (storage);
+
+ return g_key_file_get_integer (self->keyfile, account, key, NULL);
+}
+
static void
update_storage (McdPluginAccountManager *self,
const gchar *account,