summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMenTaLguY <mental@rydia.net>2008-07-08 19:15:49 +0000
committermental <mental@users.sourceforge.net>2008-07-08 19:15:49 +0000
commit427a816677532e7dfd855ccf523b15b731a8bb99 (patch)
tree7fa4b17278789ec7835e14b2ebbcd2555def401e /src
parent2geomify the static defined hatchcircles of dropper tool, dyna draw and tweak... (diff)
downloadinkscape-427a816677532e7dfd855ccf523b15b731a8bb99.tar.gz
inkscape-427a816677532e7dfd855ccf523b15b731a8bb99.zip
disable motion hints again; still some subtle issues to work out
(bzr r6230)
Diffstat (limited to 'src')
-rw-r--r--src/display/sp-canvas.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/display/sp-canvas.cpp b/src/display/sp-canvas.cpp
index b780927d8..def126cd3 100644
--- a/src/display/sp-canvas.cpp
+++ b/src/display/sp-canvas.cpp
@@ -49,7 +49,7 @@
// gtk_check_version returns non-NULL on failure
static bool const HAS_BROKEN_MOTION_HINTS =
- gtk_check_version(2, 12, 0) != NULL || !HAS_GDK_EVENT_REQUEST_MOTIONS;
+ true || gtk_check_version(2, 12, 0) != NULL || !HAS_GDK_EVENT_REQUEST_MOTIONS;
// Define this to visualize the regions to be redrawn
//#define DEBUG_REDRAW 1;
@@ -1548,15 +1548,12 @@ sp_canvas_scroll (GtkWidget *widget, GdkEventScroll *event)
return emit_event (SP_CANVAS (widget), (GdkEvent *) event);
}
+static inline void request_motions(GdkWindow *w, GdkEventMotion *event) {
+ gdk_window_get_pointer(w, NULL, NULL, NULL);
#if HAS_GDK_EVENT_REQUEST_MOTIONS
-static inline void request_motions(GdkWindow *, GdkEventMotion *event) {
gdk_event_request_motions(event);
-}
-#else
-static inline void request_motions(GdkWindow *w, GdkEventMotion *) {
- gdk_window_get_pointer(w, NULL, NULL, NULL);
-}
#endif
+}
/**
* Motion event handler for the canvas.