summaryrefslogtreecommitdiff
path: root/libcaja-private/caja-tree-view-drag-dest.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcaja-private/caja-tree-view-drag-dest.c')
-rw-r--r--libcaja-private/caja-tree-view-drag-dest.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/libcaja-private/caja-tree-view-drag-dest.c b/libcaja-private/caja-tree-view-drag-dest.c
index 3cc8ef61..c1c8ad15 100644
--- a/libcaja-private/caja-tree-view-drag-dest.c
+++ b/libcaja-private/caja-tree-view-drag-dest.c
@@ -102,14 +102,9 @@ gtk_tree_view_vertical_autoscroll (GtkTreeView *tree_view)
{
GdkRectangle visible_rect;
GtkAdjustment *vadjustment;
-#if GTK_CHECK_VERSION (3, 20, 0)
GdkDisplay *display;
GdkSeat *seat;
GdkDevice *pointer;
-#else
- GdkDeviceManager *manager;
- GdkDevice *pointer;
-#endif
GdkWindow *window;
int y;
int offset;
@@ -117,7 +112,6 @@ gtk_tree_view_vertical_autoscroll (GtkTreeView *tree_view)
window = gtk_tree_view_get_bin_window (tree_view);
-#if GTK_CHECK_VERSION (3, 20, 0)
vadjustment = gtk_scrollable_get_vadjustment (GTK_SCROLLABLE(tree_view));
display = gtk_widget_get_display (GTK_WIDGET (tree_view));
@@ -125,14 +119,6 @@ gtk_tree_view_vertical_autoscroll (GtkTreeView *tree_view)
pointer = gdk_seat_get_pointer (seat);
gdk_window_get_device_position (window, pointer,
NULL, &y, NULL);
-#else
- vadjustment = gtk_scrollable_get_vadjustment (GTK_SCROLLABLE(tree_view));
-
- manager = gdk_display_get_device_manager (gtk_widget_get_display (GTK_WIDGET (tree_view)));
- pointer = gdk_device_manager_get_client_pointer (manager);
- gdk_window_get_device_position (window, pointer,
- NULL, &y, NULL);
-#endif
y += gtk_adjustment_get_value (vadjustment);