From 24eb439099f2f7011d9008a9029b5678be352913 Mon Sep 17 00:00:00 2001 From: bulia byak Date: Sun, 21 May 2006 17:32:32 +0000 Subject: eliminate GDK_POINTER_MOTION_HINT_MASK that broke dragging with tablet pen with newer gtk versions (bzr r919) --- src/widgets/ruler.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/widgets/ruler.cpp') diff --git a/src/widgets/ruler.cpp b/src/widgets/ruler.cpp index bd3ec28eb..5eb752377 100644 --- a/src/widgets/ruler.cpp +++ b/src/widgets/ruler.cpp @@ -104,10 +104,7 @@ sp_hruler_motion_notify (GtkWidget *widget, ruler = GTK_RULER (widget); - if (event->is_hint) - gdk_window_get_pointer (widget->window, &x, NULL, NULL); - else - x = (int)event->x; + x = (int)event->x; ruler->position = ruler->lower + ((ruler->upper - ruler->lower) * x) / widget->allocation.width; @@ -408,10 +405,7 @@ sp_vruler_motion_notify (GtkWidget *widget, ruler = GTK_RULER (widget); - if (event->is_hint) - gdk_window_get_pointer (widget->window, NULL, &y, NULL); - else - y = (int)event->y; + y = (int)event->y; ruler->position = ruler->lower + ((ruler->upper - ruler->lower) * y) / widget->allocation.height; -- cgit v1.2.3