summaryrefslogtreecommitdiff
path: root/libnautilus-private/nautilus-desktop-background.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2010-10-13 17:57:05 +0200
committerCosimo Cecchi <cosimoc@gnome.org>2010-10-13 17:58:00 +0200
commit01f39f471005e788281c18da30563c0184434fff (patch)
tree626e2fa6c4c20ac4ab6046fd5773ea73893ec19e /libnautilus-private/nautilus-desktop-background.c
parent4cd72a64d67cdfd1d9351c52b2cf8463efd0c141 (diff)
downloadnautilus-01f39f471005e788281c18da30563c0184434fff.tar.gz
background: make the fading effect optional (#623174)
This is implemented with a GSettings key. Thanks to Brian Cameron for the initial patch.
Diffstat (limited to 'libnautilus-private/nautilus-desktop-background.c')
-rw-r--r--libnautilus-private/nautilus-desktop-background.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libnautilus-private/nautilus-desktop-background.c b/libnautilus-private/nautilus-desktop-background.c
index 3789d000e..7a71f7d75 100644
--- a/libnautilus-private/nautilus-desktop-background.c
+++ b/libnautilus-private/nautilus-desktop-background.c
@@ -151,12 +151,20 @@ static void
init_fade (NautilusDesktopBackground *self)
{
GtkWidget *widget;
+ gboolean do_fade;
widget = self->details->widget;
if (widget == NULL || !gtk_widget_get_realized (widget))
return;
+ do_fade = g_settings_get_boolean (nautilus_desktop_preferences,
+ NAUTILUS_PREFERENCES_DESKTOP_BACKGROUND_FADE);
+
+ if (!do_fade) {
+ return;
+ }
+
if (self->details->fade == NULL) {
GdkWindow *window;
GdkScreen *screen;