diff options
author | Jasmine Hassan <[email protected]> | 2012-11-29 16:32:43 +0200 |
---|---|---|
committer | Jasmine Hassan <[email protected]> | 2012-12-01 21:07:28 +0200 |
commit | 4d1c861ade36250c2650f4526c375c3f6f7db73c (patch) | |
tree | 82a7111bee54bfe870efa2fa373a4a6068f25f2c /plugins/background | |
parent | 000d8ecc347642bc28fb4cbbb5f2dd730f89b519 (diff) | |
download | mate-settings-daemon-4d1c861ade36250c2650f4526c375c3f6f7db73c.tar.bz2 mate-settings-daemon-4d1c861ade36250c2650f4526c375c3f6f7db73c.tar.xz |
[background] Don't draw the background if "draw-background" is false
https://bugzilla.gnome.org/show_bug.cgi?id=564909
Diffstat (limited to 'plugins/background')
-rw-r--r-- | plugins/background/msd-background-manager.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/plugins/background/msd-background-manager.c b/plugins/background/msd-background-manager.c index 74d257c..40d396b 100644 --- a/plugins/background/msd-background-manager.c +++ b/plugins/background/msd-background-manager.c @@ -54,6 +54,8 @@ #endif #define MATE_BG_SHOW_DESKTOP_ICONS "show-desktop-icons" +#define MATE_BG_DRAW_BACKGROUND "draw-background" + #define MATE_SESSION_MANAGER_DBUS_NAME "org.mate.SessionManager" #define MATE_SESSION_MANAGER_DBUS_PATH "/org/mate/SessionManager" @@ -88,6 +90,13 @@ G_DEFINE_TYPE(MsdBackgroundManager, msd_background_manager, G_TYPE_OBJECT) static gpointer manager_object = NULL; static gboolean +dont_draw_background (MsdBackgroundManager *manager) +{ + return !g_settings_get_boolean (manager->priv->settings, + MATE_BG_DRAW_BACKGROUND); +} + +static gboolean caja_is_drawing_background (MsdBackgroundManager *manager) { Atom window_id_atom; @@ -210,7 +219,7 @@ draw_background (MsdBackgroundManager *manager, int n_screens; int i; - if (caja_is_drawing_background (manager)) + if (caja_is_drawing_background (manager) || dont_draw_background (manager)) { return; } |