summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 119da00)
raw | patch | inline | side by side (parent: 119da00)
author | mental <mental@users.sourceforge.net> | |
Tue, 8 Jul 2008 19:15:49 +0000 (19:15 +0000) | ||
committer | mental <mental@users.sourceforge.net> | |
Tue, 8 Jul 2008 19:15:49 +0000 (19:15 +0000) |
src/display/sp-canvas.cpp | patch | blob | history |
index b780927d8c472144380329e182a5cf2e1cddb694..def126cd30527d8881c05bab96c0fdb28e9d79dc 100644 (file)
// 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;
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.