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]>2022-07-20 21:40:43 +0200
commit9092321563dc29826453254e5da26cf4ccfcccb6 (patch)
treea0feba32c262737f3a37395bd563689a89b39a6a /eel/eel-background.c
parentdb0a519cd4174503fa22913fab30d46cf535aad5 (diff)
downloadcaja-9092321563dc29826453254e5da26cf4ccfcccb6.tar.bz2
caja-9092321563dc29826453254e5da26cf4ccfcccb6.tar.xz
Fix build using gcc 10 -fno-common flag
Diffstat (limited to 'eel/eel-background.c')
-rw-r--r--eel/eel-background.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/eel/eel-background.c b/eel/eel-background.c
index a41360d5..5d190153 100644
--- a/eel/eel-background.c
+++ b/eel/eel-background.c
@@ -431,6 +431,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 +439,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;
}