From 66994a9b25116e509512bdee0903d138f6ab802c Mon Sep 17 00:00:00 2001 From: Jasmine Hassan Date: Sat, 1 Dec 2012 23:44:53 +0200 Subject: [mate-bg] add 2 new gsettings functions Because of the need to use now in Caja: Add mate_bg_load_from_system_gsettings() and mate_bg_save_to_gsettings(), making mate_bg_load_from_system_preferences() and mate_bg_save_to_preferences() wrappers around them, respectively. Both new funcs take GSettings argument, and the latter takes a boolean argument, to optionally apply the reset-to-schema-defaults settings. This will be used for desktop background reset-drop. --- libmate-desktop/libmateui/mate-bg.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'libmate-desktop/libmateui') diff --git a/libmate-desktop/libmateui/mate-bg.h b/libmate-desktop/libmateui/mate-bg.h index aa557a5..8fbc230 100644 --- a/libmate-desktop/libmateui/mate-bg.h +++ b/libmate-desktop/libmateui/mate-bg.h @@ -68,10 +68,16 @@ typedef enum { GType mate_bg_get_type (void); MateBG * mate_bg_new (void); void mate_bg_load_from_preferences (MateBG *bg); -void mate_bg_load_from_system_preferences (MateBG *bg); +void mate_bg_load_from_system_preferences (MateBG *bg); +void mate_bg_load_from_system_gsettings (MateBG *bg, + GSettings *settings, + gboolean reset_apply); void mate_bg_load_from_gsettings (MateBG *bg, GSettings *settings); void mate_bg_save_to_preferences (MateBG *bg); +void mate_bg_save_to_gsettings (MateBG *bg, + GSettings *settings); + /* Setters */ void mate_bg_set_filename (MateBG *bg, const char *filename); -- cgit v1.2.1