From 19022217432b8ef3b256df98cf2ccc69d1855595 Mon Sep 17 00:00:00 2001 From: monsta Date: Thu, 29 Dec 2016 14:35:05 +0300 Subject: check for stable version of GTK+3, not for development one --- src/file-manager/fm-icon-view.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/file-manager/fm-icon-view.c') diff --git a/src/file-manager/fm-icon-view.c b/src/file-manager/fm-icon-view.c index a388a3fb..8aec9188 100644 --- a/src/file-manager/fm-icon-view.c +++ b/src/file-manager/fm-icon-view.c @@ -30,7 +30,7 @@ #include "fm-desktop-icon-view.h" #include "fm-error-reporting.h" #include -#if !GTK_CHECK_VERSION(3, 21, 0) +#if !GTK_CHECK_VERSION (3, 22, 0) #include #endif #include @@ -45,7 +45,7 @@ #include #include #include -#if !GTK_CHECK_VERSION(3, 21, 0) +#if !GTK_CHECK_VERSION (3, 22, 0) #include #endif #include @@ -1273,7 +1273,7 @@ fm_icon_view_begin_loading (FMDirectoryView *view) /* kill any sound preview process that is ongoing */ preview_audio (icon_view, NULL, FALSE); -#if !GTK_CHECK_VERSION(3, 21, 0) +#if !GTK_CHECK_VERSION (3, 22, 0) /* FIXME bugzilla.gnome.org 45060: Should use methods instead * of hardcoding desktop knowledge in here. */ @@ -1296,8 +1296,8 @@ fm_icon_view_begin_loading (FMDirectoryView *view) caja_connect_background_to_file_metadata (icon_container, file, default_action); } - #endif + /* Set up the zoom level from the metadata. */ if (fm_directory_view_supports_zooming (FM_DIRECTORY_VIEW (icon_view))) { @@ -1503,7 +1503,7 @@ fm_icon_view_can_zoom_out (FMDirectoryView *view) > CAJA_ZOOM_LEVEL_SMALLEST; } -#if !GTK_CHECK_VERSION(3, 21, 0) +#if !GTK_CHECK_VERSION (3, 22, 0) static GtkWidget * fm_icon_view_get_background_widget (FMDirectoryView *view) { @@ -3173,7 +3173,7 @@ fm_icon_view_class_init (FMIconViewClass *klass) fm_directory_view_class->clear = fm_icon_view_clear; fm_directory_view_class->end_loading = fm_icon_view_end_loading; fm_directory_view_class->file_changed = fm_icon_view_file_changed; -#if !GTK_CHECK_VERSION(3, 21, 0) +#if !GTK_CHECK_VERSION (3, 22, 0) fm_directory_view_class->get_background_widget = fm_icon_view_get_background_widget; #endif fm_directory_view_class->get_selected_icon_locations = fm_icon_view_get_selected_icon_locations; @@ -3340,7 +3340,7 @@ fm_icon_view_create (CajaWindowSlotInfo *slot) "window-slot", slot, "compact", FALSE, NULL); -#if GTK_CHECK_VERSION (3, 19, 0) +#if GTK_CHECK_VERSION (3, 20, 0) gtk_style_context_add_class (gtk_widget_get_style_context (GTK_WIDGET (view)), GTK_STYLE_CLASS_VIEW); #endif return CAJA_VIEW (view); @@ -3355,7 +3355,7 @@ fm_compact_view_create (CajaWindowSlotInfo *slot) "window-slot", slot, "compact", TRUE, NULL); -#if GTK_CHECK_VERSION (3, 19, 0) +#if GTK_CHECK_VERSION (3, 20, 0) gtk_style_context_add_class (gtk_widget_get_style_context (GTK_WIDGET (view)), GTK_STYLE_CLASS_VIEW); #endif return CAJA_VIEW (view); -- cgit v1.2.1