From 0c04215b48f9fed6d2b46c3afaacbd9ba2733704 Mon Sep 17 00:00:00 2001 From: Owen Taylor Date: Thu, 10 May 2001 19:24:38 +0000 Subject: Thu May 10 15:23:50 2001 Owen Taylor * xsettings-manager.[ch]: Add xsettings_manager_delete_setting(). --- xsettings/xsettings-manager.c | 7 +++++++ xsettings/xsettings-manager.h | 27 ++++++++++++++------------- 2 files changed, 21 insertions(+), 13 deletions(-) (limited to 'xsettings') 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 @@ -246,6 +246,13 @@ xsettings_manager_set_setting (XSettingsManager *manager, return result; } +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, 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 } -- cgit v1.2.3-70-g09d2