summaryrefslogtreecommitdiffstats
path: root/src/verbs.cpp
diff options
context:
space:
mode:
authorAlex Valavanis <valavanisalex@gmail.com>2012-04-15 00:17:25 +0000
committerAlex Valavanis <valavanisalex@gmail.com>2012-04-15 00:17:25 +0000
commit0024197c76bca50d557edc2824646a636d695c4d (patch)
tree5806bbba74cc9460371d2175f8a354917004245e /src/verbs.cpp
parentDon't prevent deprecated symbol usage with GTK+ 3 build yet... let's go one s... (diff)
downloadinkscape-0024197c76bca50d557edc2824646a636d695c4d.tar.gz
inkscape-0024197c76bca50d557edc2824646a636d695c4d.zip
Get rid of remaining deprecated GDK Key symbols
(bzr r11250)
Diffstat (limited to 'src/verbs.cpp')
-rw-r--r--src/verbs.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/verbs.cpp b/src/verbs.cpp
index d4ac35b33..1b57ad4ff 100644
--- a/src/verbs.cpp
+++ b/src/verbs.cpp
@@ -84,6 +84,11 @@
#include <gtk/gtk.h>
+#if !GTK_CHECK_VERSION(2,22,0)
+#define GDK_KEY_KP_Add 0xffab
+#define GDK_KEY_KP_Subtract 0xffad
+#endif
+
using Inkscape::DocumentUndo;
//#ifdef WITH_INKBOARD
@@ -1656,7 +1661,7 @@ void ZoomVerb::perform(SPAction *action, void *data)
case SP_VERB_ZOOM_IN:
{
gint mul = 1 + gobble_key_events(
- GDK_KP_Add, 0); // with any mask
+ GDK_KEY_KP_Add, 0); // with any mask
// While drawing with the pen/pencil tool, zoom towards the end of the unfinished path
if (tools_isactive(dt, TOOLS_FREEHAND_PENCIL) || tools_isactive(dt, TOOLS_FREEHAND_PEN)) {
SPCurve *rc = SP_DRAW_CONTEXT(ec)->red_curve;
@@ -1674,7 +1679,7 @@ void ZoomVerb::perform(SPAction *action, void *data)
case SP_VERB_ZOOM_OUT:
{
gint mul = 1 + gobble_key_events(
- GDK_KP_Subtract, 0); // with any mask
+ GDK_KEY_KP_Subtract, 0); // with any mask
// While drawing with the pen/pencil tool, zoom away from the end of the unfinished path
if (tools_isactive(dt, TOOLS_FREEHAND_PENCIL) || tools_isactive(dt, TOOLS_FREEHAND_PEN)) {
SPCurve *rc = SP_DRAW_CONTEXT(ec)->red_curve;