summaryrefslogtreecommitdiff
path: root/libmate-desktop/libmateui/mate-bg.h
diff options
context:
space:
mode:
authorJasmine Hassan <[email protected]>2012-11-29 22:29:09 +0200
committerJasmine Hassan <[email protected]>2012-12-01 14:02:04 +0200
commit2e03a8e7d88d6d2c715a7f399ad19802f68984c0 (patch)
treeb506caef421258f0ce8abc5cc39178001722da84 /libmate-desktop/libmateui/mate-bg.h
parentc3fd1f39ba0482b3a838c7a6697d87d7c5db7c25 (diff)
downloadmate-desktop-2e03a8e7d88d6d2c715a7f399ad19802f68984c0.tar.bz2
mate-desktop-2e03a8e7d88d6d2c715a7f399ad19802f68984c0.tar.xz
[mate-bg] Review GSettings port, add _(set|get)_draw_background()
1. Fix fallback if the user's picture-filename setting is set to a non-existent file (ex: it got deleted). Currently, we fallback to the picture-filename of the default schema. Later, we could use a more robust solution like g_settings_get_mapped(). But first, we ought to use a URI instead of a filename string, because a URI is always UTF8-encoded. 2. Add mate_bg_(set|get)_draw_background() functions. Need 'em in Caja, now!
Diffstat (limited to 'libmate-desktop/libmateui/mate-bg.h')
-rw-r--r--libmate-desktop/libmateui/mate-bg.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/libmate-desktop/libmateui/mate-bg.h b/libmate-desktop/libmateui/mate-bg.h
index 61e2a01..aa557a5 100644
--- a/libmate-desktop/libmateui/mate-bg.h
+++ b/libmate-desktop/libmateui/mate-bg.h
@@ -81,8 +81,11 @@ void mate_bg_set_color (MateBG *bg,
MateBGColorType type,
GdkColor *primary,
GdkColor *secondary);
+void mate_bg_set_draw_background (MateBG *bg,
+ gboolean draw_background);
/* Getters */
-MateBGPlacement mate_bg_get_placement (MateBG *bg);
+gboolean mate_bg_get_draw_background (MateBG *bg);
+MateBGPlacement mate_bg_get_placement (MateBG *bg);
void mate_bg_get_color (MateBG *bg,
MateBGColorType *type,
GdkColor *primary,