summaryrefslogtreecommitdiff
path: root/eel/eel-background.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-01-30 10:56:12 +0100
committerraveit65 <[email protected]>2020-02-01 14:58:29 +0100
commit6bf49f348d8ce6debc8f645b667422bb9a261a2b (patch)
treeeab422c9a14238d97cf3bdbca55eb86f58ba6cb0 /eel/eel-background.c
parentca7cecc5ce724bc91e1a3d0f8dd59ca802180ff4 (diff)
downloadcaja-6bf49f348d8ce6debc8f645b667422bb9a261a2b.tar.bz2
caja-6bf49f348d8ce6debc8f645b667422bb9a261a2b.tar.xz
Fix build using gcc 10 -fno-common flag
Diffstat (limited to 'eel/eel-background.c')
-rw-r--r--eel/eel-background.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/eel/eel-background.c b/eel/eel-background.c
index 152f1cb3..4d2d1e0c 100644
--- a/eel/eel-background.c
+++ b/eel/eel-background.c
@@ -32,8 +32,6 @@
#include <math.h>
#include <stdio.h>
-#include <libcaja-private/caja-global-preferences.h>
-
#include "eel-background.h"
#include "eel-gdk-extensions.h"
#include "eel-glib-extensions.h"
@@ -431,6 +429,7 @@ set_root_surface (EelBackground *self,
static void
init_fade (EelBackground *self)
{
+ GSettings *mate_background_preferences;
GtkWidget *widget = self->details->widget;
gboolean do_fade;
@@ -438,8 +437,11 @@ init_fade (EelBackground *self)
return;
}
+ mate_background_preferences = g_settings_new ("org.mate.background");
do_fade = g_settings_get_boolean (mate_background_preferences,
MATE_BG_KEY_BACKGROUND_FADE);
+ g_object_unref (mate_background_preferences);
+
if (!do_fade) {
return;
}