diff options
| author | Jon Phillips <jon@fabricatorz.com> | 2006-11-06 02:55:32 +0000 |
|---|---|---|
| committer | kidproto <kidproto@users.sourceforge.net> | 2006-11-06 02:55:32 +0000 |
| commit | c49e6163074886cdb6b62fbd186497bdc0092369 (patch) | |
| tree | 2b785c789bae0180eaf24aea10da22b0c4a1723b /src/display/sp-canvas.cpp | |
| parent | copyedit (diff) | |
| download | inkscape-c49e6163074886cdb6b62fbd186497bdc0092369.tar.gz inkscape-c49e6163074886cdb6b62fbd186497bdc0092369.zip | |
Applied patch to disable the pressure sensitivity for those people that have
problems and added new author to our authors file:
https://sourceforge.net/tracker/index.php?func=detail&aid=1511066&group_id=93438&atid=604308
Please test o this feature for those who have tablets, pressure sensitivity, etc...it is a workaround for gtk+ problems with some tablets, etc...
(bzr r1911)
Diffstat (limited to 'src/display/sp-canvas.cpp')
| -rw-r--r-- | src/display/sp-canvas.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/display/sp-canvas.cpp b/src/display/sp-canvas.cpp index f258d5370..71e4d955d 100644 --- a/src/display/sp-canvas.cpp +++ b/src/display/sp-canvas.cpp @@ -33,6 +33,7 @@ #include <libnr/nr-matrix-fns.h> #include <libnr/nr-matrix-ops.h> #include <libnr/nr-convex-hull.h> +#include "prefs-utils.h" enum { RENDERMODE_NORMAL, @@ -1086,7 +1087,9 @@ sp_canvas_realize (GtkWidget *widget) widget->window = gdk_window_new (gtk_widget_get_parent_window (widget), &attributes, attributes_mask); gdk_window_set_user_data (widget->window, widget); - gtk_widget_set_events(widget, attributes.event_mask); + + if ( prefs_get_int_attribute ("options.useextinput", "value", 1) ) + gtk_widget_set_events(widget, attributes.event_mask); GTK_WIDGET_SET_FLAGS (widget, GTK_REALIZED); |
