Re: [PATCH] Avoid gtk_widget_get_pointer ().
Stefano Teso <[email protected]>
| Newsgroups | gmane.comp.gnome.nautilus |
|---|---|
| Message-ID | <CAD3QFeu3B88aUs4GwoZd+nEMC6DDwcfRQM2G+vfoSncFmxP2kQ@mail.gmail.com> |
On Wed, Nov 30, 2011 at 12:04 PM, Stefano Teso <[email protected]> wrote: > Please ignore. Broken runtime behavior. Sorry for the spam. > > Sigh. Fixed patch attached. ---- Stefano > > ---- > Stefano > > On Wed, Nov 30, 2011 at 11:58 AM, Stefano Teso <[email protected]> wrote: >> Hi, >> >> the attached patch makes nautilus build fine again for me. An, yes, no >> bugzilla entry for this, it's a trivial fix anyway. >> >> [ Sorry for the format, I have yet to figure out how to properly hook >> git to gmail :-P ] >> >> Please review, >> >> ---- >> Stefano > -- nautilus-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/nautilus-list
0001-Avoid-deprecate-gtk_widget_get_pointer.patch
(application/octet-stream, 972 B)
From 2bf7af818b8892d3d58a87273994aaeec0174cd7 Mon Sep 17 00:00:00 2001 From: Stefano Teso <[email protected]> Date: Wed, 30 Nov 2011 12:21:34 +0100 Subject: [PATCH] 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; -- 1.7.7.3