[nautilus] Avoid deprecate gtk_widget_get_pointer().
- From: Stefano Teso <steso src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] Avoid deprecate gtk_widget_get_pointer().
- Date: Sun, 4 Dec 2011 09:00:33 +0000 (UTC)
commit cdf858fbfccdbca7bd8fc27f0f85e815177ee8c6
Author: Stefano Teso <stefano teso gmail com>
Date: Wed Nov 30 12:21:34 2011 +0100
Avoid deprecate gtk_widget_get_pointer().
libnautilus-private/nautilus-icon-container.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/libnautilus-private/nautilus-icon-container.c b/libnautilus-private/nautilus-icon-container.c
index deefa76..ea68ce7 100644
--- a/libnautilus-private/nautilus-icon-container.c
+++ b/libnautilus-private/nautilus-icon-container.c
@@ -2521,7 +2521,11 @@ rubberband_timeout_callback (gpointer data)
adj_changed = TRUE;
}
- gtk_widget_get_pointer (widget, &x, &y);
+ 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);
if (x < 0) {
x_scroll = x;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]