diff options
author | monsta <[email protected]> | 2018-01-29 17:28:30 +0300 |
---|---|---|
committer | raveit65 <[email protected]> | 2018-01-31 11:47:27 +0100 |
commit | 26a21fa2cb70a13b7e96ae43d4de825ad7663dc9 (patch) | |
tree | d61f2df112ee55e68de510d5c95b2531ba1fa922 /libcaja-private/caja-tree-view-drag-dest.c | |
parent | 0045e373ee71efb8ae9979adc4ef88d5dc90b2ea (diff) | |
download | caja-26a21fa2cb70a13b7e96ae43d4de825ad7663dc9.tar.bz2 caja-26a21fa2cb70a13b7e96ae43d4de825ad7663dc9.tar.xz |
require GTK+ 3.22 and GLib 2.50
Diffstat (limited to 'libcaja-private/caja-tree-view-drag-dest.c')
-rw-r--r-- | libcaja-private/caja-tree-view-drag-dest.c | 14 |
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); |