[gtk+/xi2: 141/148] GtkRange: Use device-aware gdk methods.
- From: Carlos Garnacho <carlosg src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk+/xi2: 141/148] GtkRange: Use device-aware gdk methods.
- Date: Thu, 10 Dec 2009 21:13:33 +0000 (UTC)
commit 7467adeb085593cb49d3f5a2f2419dad3b377d91
Author: Carlos Garnacho <carlos gnome org>
Date: Wed Dec 9 23:20:27 2009 +0100
GtkRange: Use device-aware gdk methods.
gtk/gtkrange.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkrange.c b/gtk/gtkrange.c
index 17c0d6f..4321f42 100644
--- a/gtk/gtkrange.c
+++ b/gtk/gtkrange.c
@@ -2246,10 +2246,11 @@ gtk_range_button_release (GtkWidget *widget,
}
else
{
- gdk_window_get_pointer (range->event_window,
- &range->layout->mouse_x,
- &range->layout->mouse_y,
- NULL);
+ gdk_window_get_device_position (range->event_window,
+ event->device,
+ &range->layout->mouse_x,
+ &range->layout->mouse_y,
+ NULL);
}
if (range->layout->grab_button == event->button)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]