summaryrefslogtreecommitdiffstats
path: root/linux.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux.c')
-rw-r--r--linux.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/linux.c b/linux.c
index bf5c21d94..4add7bb01 100644
--- a/linux.c
+++ b/linux.c
@@ -38,6 +38,11 @@ void subsurface_set_conf_bool(char *name, int value)
gconf_client_set_bool(gconf, gconf_name(name), value > 0, NULL);
}
+void subsurface_set_conf_int(char *name, int value)
+{
+ gconf_client_set_int(gconf, gconf_name(name), value , NULL);
+}
+
const void *subsurface_get_conf(char *name)
{
return gconf_client_get_string(gconf, gconf_name(name), NULL);
@@ -56,6 +61,15 @@ int subsurface_get_conf_bool(char *name)
return ret;
}
+int subsurface_get_conf_int(char *name)
+{
+ int val = gconf_client_get_int(gconf, gconf_name(name), NULL);
+ if(!val)
+ return -1;
+
+ return val;
+}
+
void subsurface_flush_conf(void)
{
/* this is a no-op */