diff options
author | Wolfgang Ulbrich <[email protected]> | 2016-01-15 23:26:05 +0100 |
---|---|---|
committer | Wolfgang Ulbrich <[email protected]> | 2016-01-15 23:26:05 +0100 |
commit | 3c796cdf6020ac59cbcaca103453501292423c71 (patch) | |
tree | 1cb80a4771c7df62438a7d77f68ce9cfed8284b3 /libcaja-private/caja-icon-container.c | |
parent | 50970d1bb15d1f9c682e92dda345e59cfcf5330f (diff) | |
download | caja-3c796cdf6020ac59cbcaca103453501292423c71.tar.bz2 caja-3c796cdf6020ac59cbcaca103453501292423c71.tar.xz |
GTK3 all: don't use deprecated GDK pointer methods
Use the new GdkDevice methods instead.
taken from:
https://git.gnome.org/browse/nautilus/commit/?h=gnome-3-4&id=a816e00
https://git.gnome.org/browse/nautilus/commit/?h=gnome-3-4&id=cdf858f
Diffstat (limited to 'libcaja-private/caja-icon-container.c')
-rw-r--r-- | libcaja-private/caja-icon-container.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libcaja-private/caja-icon-container.c b/libcaja-private/caja-icon-container.c index 049f2fc2..8dcda910 100644 --- a/libcaja-private/caja-icon-container.c +++ b/libcaja-private/caja-icon-container.c @@ -2785,7 +2785,15 @@ rubberband_timeout_callback (gpointer data) adj_changed = TRUE; } +#if GTK_CHECK_VERSION (3, 0, 0) + gdk_window_get_device_position (gtk_widget_get_window (widget), + gdk_device_manager_get_client_pointer ( + gdk_display_get_device_manager ( + gtk_widget_get_display (widget))), + &x, &y, NULL); +#else gtk_widget_get_pointer (widget, &x, &y); +#endif if (x < 0) { |