summaryrefslogtreecommitdiffstats
path: root/src/display/sp-canvas.cpp
diff options
context:
space:
mode:
authorKrzysztof Kosi??ski <tweenk.pl@gmail.com>2014-02-27 01:01:31 +0000
committerKrzysztof KosiƄski <tweenk.pl@gmail.com>2014-02-27 01:01:31 +0000
commite244543e8df2d19c706c349139922189f01b63f8 (patch)
tree8d5bd46131c58393651e3caee3581e275641d0ea /src/display/sp-canvas.cpp
parentAdded template functions as a casting-macro replacement. (diff)
downloadinkscape-e244543e8df2d19c706c349139922189f01b63f8.tar.gz
inkscape-e244543e8df2d19c706c349139922189f01b63f8.zip
Move extended input events stuff from desktop-widget.cpp to sp-canvas.cpp,
where it belongs (bzr r13062)
Diffstat (limited to 'src/display/sp-canvas.cpp')
-rw-r--r--src/display/sp-canvas.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/display/sp-canvas.cpp b/src/display/sp-canvas.cpp
index d9640f763..543962376 100644
--- a/src/display/sp-canvas.cpp
+++ b/src/display/sp-canvas.cpp
@@ -1387,8 +1387,13 @@ void SPCanvasImpl::realize(GtkWidget *widget)
gdk_window_set_user_data (window, widget);
Inkscape::Preferences *prefs = Inkscape::Preferences::get();
- if ( prefs->getBool("/options/useextinput/value", true) )
+ if (prefs->getBool("/options/useextinput/value", true)) {
gtk_widget_set_events(widget, attributes.event_mask);
+#if !GTK_CHECK_VERSION(3,0,0)
+ gtk_widget_set_extension_events(widget, GDK_EXTENSION_EVENTS_ALL);
+ // TODO: Extension event stuff has been deprecated in GTK+ 3
+#endif
+ }
#if !GTK_CHECK_VERSION(3,0,0)
// This does nothing in GTK+ 3