[gnome-settings-daemon] background: Never draw the background if "draw-background" is false
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] background: Never draw the background if "draw-background" is false
- Date: Fri, 11 Mar 2011 18:46:50 +0000 (UTC)
commit 349bd0063fc9a4c65234a45f800b8c6b7a14ac6e
Author: Bastien Nocera <hadess hadess net>
Date: Fri Mar 11 18:46:14 2011 +0000
background: Never draw the background if "draw-background" is false
https://bugzilla.gnome.org/show_bug.cgi?id=564909
plugins/background/gsd-background-manager.c | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/plugins/background/gsd-background-manager.c b/plugins/background/gsd-background-manager.c
index 004bc88..40697a2 100644
--- a/plugins/background/gsd-background-manager.c
+++ b/plugins/background/gsd-background-manager.c
@@ -71,6 +71,13 @@ G_DEFINE_TYPE (GsdBackgroundManager, gsd_background_manager, G_TYPE_OBJECT)
static gpointer manager_object = NULL;
static gboolean
+dont_draw_background (GsdBackgroundManager *manager)
+{
+ return !g_settings_get_boolean (manager->priv->settings,
+ "draw-background");
+}
+
+static gboolean
nautilus_is_drawing_background (GsdBackgroundManager *manager)
{
Atom window_id_atom;
@@ -183,7 +190,8 @@ draw_background (GsdBackgroundManager *manager,
int i;
- if (nautilus_is_drawing_background (manager)) {
+ if (nautilus_is_drawing_background (manager) ||
+ dont_draw_background (manager)) {
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]