summaryrefslogtreecommitdiffstats
path: root/xsettings
diff options
context:
space:
mode:
Diffstat (limited to 'xsettings')
-rw-r--r--xsettings/xsettings-manager.c7
-rw-r--r--xsettings/xsettings-manager.h27
2 files changed, 21 insertions, 13 deletions
diff --git a/xsettings/xsettings-manager.c b/xsettings/xsettings-manager.c
index 53090bc..0dcfb02 100644
--- a/xsettings/xsettings-manager.c
+++ b/xsettings/xsettings-manager.c
@@ -247,6 +247,13 @@ xsettings_manager_set_setting (XSettingsManager *manager,
}
XSettingsResult
+xsettings_manager_delete_setting (XSettingsManager *manager,
+ const char *name)
+{
+ return xsettings_list_delete (&settings, name);
+}
+
+XSettingsResult
xsettings_manager_set_int (XSettingsManager *manager,
const char *name,
int value)
diff --git a/xsettings/xsettings-manager.h b/xsettings/xsettings-manager.h
index 3273f2d..2439b42 100644
--- a/xsettings/xsettings-manager.h
+++ b/xsettings/xsettings-manager.h
@@ -47,19 +47,20 @@ Window xsettings_manager_get_window (XSettingsManager *manager);
Bool xsettings_manager_process_event (XSettingsManager *manager,
XEvent *xev);
-XSettingsResult xsettings_manager_set_setting (XSettingsManager *manager,
- XSettingsSetting *setting);
-XSettingsResult xsettings_manager_set_int (XSettingsManager *manager,
- const char *name,
- int value);
-XSettingsResult xsettings_manager_set_string (XSettingsManager *manager,
- const char *name,
- const char *value);
-XSettingsResult xsettings_manager_set_color (XSettingsManager *manager,
- const char *name,
- XSettingsColor *value);
-XSettingsResult xsettings_manager_notify (XSettingsManager *manager);
-
+XSettingsResult xsettings_manager_set_setting (XSettingsManager *manager,
+ XSettingsSetting *setting);
+XSettingsResult xsettings_manager_delete_setting (XSettingsManager *manager,
+ const char *name);
+XSettingsResult xsettings_manager_set_int (XSettingsManager *manager,
+ const char *name,
+ int value);
+XSettingsResult xsettings_manager_set_string (XSettingsManager *manager,
+ const char *name,
+ const char *value);
+XSettingsResult xsettings_manager_set_color (XSettingsManager *manager,
+ const char *name,
+ XSettingsColor *value);
+XSettingsResult xsettings_manager_notify (XSettingsManager *manager);
#ifdef __cplusplus
}