summaryrefslogtreecommitdiff
path: root/src/file-manager
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2016-07-29 17:07:48 -0400
committerraveit65 <[email protected]>2016-08-04 15:30:23 +0200
commit3d61fc43087764d2a99c8cdce4bebc697ba961bc (patch)
tree83f64dc73740cecb4bb8e2dd7ea2e0e768da762d /src/file-manager
parentc8ea6aafe576d204b4423c868754b4580c52d397 (diff)
downloadcaja-3d61fc43087764d2a99c8cdce4bebc697ba961bc.tar.bz2
caja-3d61fc43087764d2a99c8cdce4bebc697ba961bc.tar.xz
GTK3.21:fix desktop redraw (fm-list-view.c)
Diffstat (limited to 'src/file-manager')
-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;