summaryrefslogtreecommitdiffstats
path: root/src/widgets/ruler.cpp
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2006-05-21 17:32:32 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2006-05-21 17:32:32 +0000
commit24eb439099f2f7011d9008a9029b5678be352913 (patch)
tree645ee5c1e57be3f4f24712f3add9cc64e133e2e2 /src/widgets/ruler.cpp
parentrequire libsigc-2.0.11 on gcc-3 and 2.0.12 on gcc-4+ systems (diff)
downloadinkscape-24eb439099f2f7011d9008a9029b5678be352913.tar.gz
inkscape-24eb439099f2f7011d9008a9029b5678be352913.zip
eliminate GDK_POINTER_MOTION_HINT_MASK that broke dragging with tablet pen with newer gtk versions
(bzr r919)
Diffstat (limited to 'src/widgets/ruler.cpp')
-rw-r--r--src/widgets/ruler.cpp10
1 files changed, 2 insertions, 8 deletions
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;