From 97384cb65c885e9e29a40cb1d434440e13b5e5d2 Mon Sep 17 00:00:00 2001 From: monsta Date: Sun, 20 Nov 2016 21:02:38 +0300 Subject: background: check for stable release of GTK+3, not for development one --- plugins/background/msd-background-manager.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/plugins/background/msd-background-manager.c b/plugins/background/msd-background-manager.c index d693312..70f273d 100644 --- a/plugins/background/msd-background-manager.c +++ b/plugins/background/msd-background-manager.c @@ -67,7 +67,7 @@ struct MsdBackgroundManagerPrivate { GList *scr_sizes; gboolean msd_can_draw; -#if !GTK_CHECK_VERSION(3, 21, 0) +#if !GTK_CHECK_VERSION(3, 22, 0) gboolean caja_can_draw; #endif gboolean do_fade; @@ -97,7 +97,7 @@ can_fade_bg (MsdBackgroundManager *manager) return g_settings_get_boolean (manager->priv->settings, MATE_BG_KEY_BACKGROUND_FADE); } -#if !GTK_CHECK_VERSION(3, 21, 0) +#if !GTK_CHECK_VERSION(3, 22, 0) /* Whether Caja is configured to draw desktop (show-desktop-icons) */ static gboolean caja_can_draw_bg (MsdBackgroundManager *manager) @@ -221,7 +221,7 @@ draw_background (MsdBackgroundManager *manager, { MsdBackgroundManagerPrivate *p = manager->priv; -#if GTK_CHECK_VERSION(3, 21, 0) +#if GTK_CHECK_VERSION(3, 22, 0) if (!p->msd_can_draw || p->draw_in_progress) return; #else @@ -270,7 +270,7 @@ on_screen_size_changed (GdkScreen *screen, MsdBackgroundManager *manager) { MsdBackgroundManagerPrivate *p = manager->priv; -#if GTK_CHECK_VERSION(3, 21, 0) +#if GTK_CHECK_VERSION(3, 22, 0) if (!p->msd_can_draw || p->draw_in_progress) return; #else @@ -347,7 +347,7 @@ settings_change_event_cb (GSettings *settings, /* Complements on_bg_handling_changed() */ p->msd_can_draw = msd_can_draw_bg (manager); -#if GTK_CHECK_VERSION(3, 21, 0) +#if GTK_CHECK_VERSION(3, 22, 0) if (p->msd_can_draw && p->bg != NULL) { /* Defer signal processing to avoid making the dconf backend deadlock */ @@ -418,7 +418,7 @@ on_bg_handling_changed (GSettings *settings, MsdBackgroundManagerPrivate *p = manager->priv; mate_settings_profile_start (NULL); -#if !GTK_CHECK_VERSION(3, 21, 0) +#if !GTK_CHECK_VERSION(3, 22, 0) if (caja_is_drawing_bg (manager)) { if (p->bg != NULL) @@ -428,7 +428,7 @@ on_bg_handling_changed (GSettings *settings, { #endif setup_background (manager); -#if !GTK_CHECK_VERSION(3, 21, 0) +#if !GTK_CHECK_VERSION(3, 22, 0) } #endif mate_settings_profile_end (NULL); @@ -526,7 +526,7 @@ msd_background_manager_start (MsdBackgroundManager *manager, p->settings = g_settings_new (MATE_BG_SCHEMA); p->msd_can_draw = msd_can_draw_bg (manager); -#if !GTK_CHECK_VERSION(3, 21, 0) +#if !GTK_CHECK_VERSION(3, 22, 0) p->caja_can_draw = caja_can_draw_bg (manager); #endif @@ -541,7 +541,7 @@ msd_background_manager_start (MsdBackgroundManager *manager, */ if (p->msd_can_draw) { -#if !GTK_CHECK_VERSION(3, 21, 0) +#if !GTK_CHECK_VERSION(3, 22, 0) if (p->caja_can_draw) { @@ -551,7 +551,7 @@ msd_background_manager_start (MsdBackgroundManager *manager, { #endif setup_background (manager); -#if !GTK_CHECK_VERSION(3, 21, 0) +#if !GTK_CHECK_VERSION(3, 22, 0) } #endif } -- cgit v1.2.1