summaryrefslogtreecommitdiff
path: root/libmate-desktop/libmateui/mate-bg.h
diff options
context:
space:
mode:
authorJasmine Hassan <[email protected]>2012-12-01 23:44:53 +0200
committerJasmine Hassan <[email protected]>2012-12-02 00:01:06 +0200
commit66994a9b25116e509512bdee0903d138f6ab802c (patch)
tree7f77dab3cbec3c8efe10bb60fcf46cd7bb1c91c3 /libmate-desktop/libmateui/mate-bg.h
parente93b5be6cda47dcd0afbc280f494b236d076444f (diff)
downloadmate-desktop-66994a9b25116e509512bdee0903d138f6ab802c.tar.bz2
mate-desktop-66994a9b25116e509512bdee0903d138f6ab802c.tar.xz
[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.
Diffstat (limited to 'libmate-desktop/libmateui/mate-bg.h')
-rw-r--r--libmate-desktop/libmateui/mate-bg.h8
1 files changed, 7 insertions, 1 deletions
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);