diff options
| author | Alex Valavanis <valavanisalex@gmail.com> | 2012-01-05 11:11:22 +0000 |
|---|---|---|
| committer | Alex Valavanis <valavanisalex@gmail.com> | 2012-01-05 11:11:22 +0000 |
| commit | c39dd6a9ddc10951cf67085ac943464bda8aac94 (patch) | |
| tree | 28f38d5ef8634bc73b22fe23470ee18bf04dde78 /src/device-manager.cpp | |
| parent | A few GSEAL fixes for SPCanvas (diff) | |
| download | inkscape-c39dd6a9ddc10951cf67085ac943464bda8aac94.tar.gz inkscape-c39dd6a9ddc10951cf67085ac943464bda8aac94.zip | |
Backward compatibility for gdk_device_get_has_cursor
(bzr r10844)
Diffstat (limited to 'src/device-manager.cpp')
| -rw-r--r-- | src/device-manager.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/device-manager.cpp b/src/device-manager.cpp index adac83fed..1059f6e09 100644 --- a/src/device-manager.cpp +++ b/src/device-manager.cpp @@ -182,12 +182,13 @@ public: #if GTK_CHECK_VERSION (2, 22, 0) virtual Gdk::InputMode getMode() const {return static_cast<Gdk::InputMode>(gdk_device_get_mode (device));} virtual gint getNumAxes() const {return gdk_device_get_n_axes (device);} + virtual bool hasCursor() const {return gdk_device_get_has_cursor (device);} #else virtual Gdk::InputMode getMode() const {return static_cast<Gdk::InputMode>(device->mode);} virtual gint getNumAxes() const {return device->num_axes;} + virtual bool hasCursor() const {return device->has_cursor;} #endif - virtual bool hasCursor() const {return gdk_device_get_has_cursor (device);} virtual gint getNumKeys() const { // Backward-compatibility: The GSEAL-compliant // gdk_device_get_n_keys function was only introduced @@ -756,9 +757,9 @@ static void createFakeList() { fakeout[4].name = g_strdup(device->name); fakeout[4].source = device->source; fakeout[4].mode = device->mode; + fakeout[4].has_cursor = device->has_cursor; fakeout[4].num_axes = device->num_axes; #endif - fakeout[4].has_cursor = gdk_device_get_has_cursor (device); #if GTK_CHECK_VERSION (2, 24, 0) fakeout[4].num_keys = gdk_device_get_n_keys (device); #else |
