summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2001-05-10 19:24:38 +0000
committerOwen Taylor <otaylor@redhat.com>2001-05-10 19:24:38 +0000
commit0c04215b48f9fed6d2b46c3afaacbd9ba2733704 (patch)
tree97644f98363d06e1a2a3e75ae02bce2b3a18a2c1
parent59c5fed525f1dc68e55d06a12ac5e5a95c22eeab (diff)
downloadxdg-specs-0c04215b48f9fed6d2b46c3afaacbd9ba2733704.tar.xz
Thu May 10 15:23:50 2001 Owen Taylor <otaylor@redhat.com>
* xsettings-manager.[ch]: Add xsettings_manager_delete_setting().
-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
}