summaryrefslogtreecommitdiffstats
path: root/src/inkscape.cpp
diff options
context:
space:
mode:
authorEd Halley <ed@halley.cc>2009-03-16 21:43:07 +0000
committerspeare <speare@users.sourceforge.net>2009-03-16 21:43:07 +0000
commit70f8181cb0be07e0695bd251fc40b0535575bf51 (patch)
tree5d07dcb8f576403153b75d09a150fc429e79888a /src/inkscape.cpp
parentContextual split of a message, updated Russian translation (diff)
downloadinkscape-70f8181cb0be07e0695bd251fc40b0535575bf51.tar.gz
inkscape-70f8181cb0be07e0695bd251fc40b0535575bf51.zip
response to bug #167290; add another undoc option to support alt-key tracking for osx x11 and other gdk systems that cannot sense alt key properly
(bzr r7505)
Diffstat (limited to 'src/inkscape.cpp')
-rw-r--r--src/inkscape.cpp18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/inkscape.cpp b/src/inkscape.cpp
index b497367cc..25b3cc5a9 100644
--- a/src/inkscape.cpp
+++ b/src/inkscape.cpp
@@ -110,6 +110,7 @@ struct Inkscape::Application {
gboolean use_gui; // may want to consider a virtual function
// for overriding things like the warning dlg's
guint mapalt;
+ guint trackalt;
};
struct Inkscape::ApplicationClass {
@@ -462,7 +463,8 @@ inkscape_init (SPObject * object)
inkscape->menus = sp_repr_read_mem (_(menus_skeleton), MENUS_SKELETON_SIZE, NULL);
inkscape->desktops = NULL;
inkscape->dialogs_toggle = TRUE;
- inkscape->mapalt=GDK_MOD1_MASK;
+ inkscape->mapalt = GDK_MOD1_MASK;
+ inkscape->trackalt = FALSE;
}
static void
@@ -520,6 +522,17 @@ void inkscape_mapalt(guint maskvalue)
}
}
+guint
+inkscape_trackalt() {
+ return inkscape->trackalt;
+}
+
+void inkscape_trackalt(guint trackvalue)
+{
+ inkscape->trackalt = trackvalue;
+}
+
+
static void
inkscape_activate_desktop_private (Inkscape::Application */*inkscape*/, SPDesktop *desktop)
{
@@ -775,9 +788,10 @@ inkscape_application_init (const gchar *argv0, gboolean use_gui)
}
/* Check for global remapping of Alt key */
- if(use_gui)
+ if (use_gui)
{
inkscape_mapalt(guint(prefs->getInt("/options/mapalt/value", 0)));
+ inkscape_trackalt(guint(prefs->getInt("/options/trackalt/value", 0)));
}
/* Initialize the extensions */