summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/file-manager/fm-list-view.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/file-manager/fm-list-view.c b/src/file-manager/fm-list-view.c
index f39c1975..46f6c143 100644
--- a/src/file-manager/fm-list-view.c
+++ b/src/file-manager/fm-list-view.c
@@ -47,7 +47,9 @@
#include <libcaja-private/caja-column-chooser.h>
#include <libcaja-private/caja-column-utilities.h>
#include <libcaja-private/caja-debug-log.h>
+#if !GTK_CHECK_VERSION(3, 21, 0)
#include <libcaja-private/caja-directory-background.h>
+#endif
#include <libcaja-private/caja-dnd.h>
#include <libcaja-private/caja-file-dnd.h>
#include <libcaja-private/caja-file-utilities.h>
@@ -2125,11 +2127,13 @@ fm_list_view_file_changed (FMDirectoryView *view, CajaFile *file, CajaDirectory
}
}
+#if !GTK_CHECK_VERSION(3, 21, 0)
static GtkWidget *
fm_list_view_get_background_widget (FMDirectoryView *view)
{
return GTK_WIDGET (view);
}
+#endif
static void
fm_list_view_get_selection_foreach_func (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer data)
@@ -3331,7 +3335,9 @@ fm_list_view_class_init (FMListViewClass *class)
fm_directory_view_class->click_policy_changed = fm_list_view_click_policy_changed;
fm_directory_view_class->clear = fm_list_view_clear;
fm_directory_view_class->file_changed = fm_list_view_file_changed;
+#if !GTK_CHECK_VERSION(3, 21, 0)
fm_directory_view_class->get_background_widget = fm_list_view_get_background_widget;
+#endif
fm_directory_view_class->get_selection = fm_list_view_get_selection;
fm_directory_view_class->get_selection_for_file_transfer = fm_list_view_get_selection_for_file_transfer;
fm_directory_view_class->get_item_count = fm_list_view_get_item_count;