summaryrefslogtreecommitdiffstats
path: root/src/desktop-events.cpp
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2008-10-27 18:03:09 +0000
committerTed Gould <ted@canonical.com>2008-10-27 18:03:09 +0000
commit7dbe11bc23efa5f51a9b84e7d0f6dd16e63e0902 (patch)
tree7d3a2b95b84a03a19cb132cdf88bea0ab6dc4773 /src/desktop-events.cpp
parentMerging from trunk (diff)
downloadinkscape-7dbe11bc23efa5f51a9b84e7d0f6dd16e63e0902.tar.gz
inkscape-7dbe11bc23efa5f51a9b84e7d0f6dd16e63e0902.zip
From trunk
(bzr r6885)
Diffstat (limited to 'src/desktop-events.cpp')
-rw-r--r--src/desktop-events.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/desktop-events.cpp b/src/desktop-events.cpp
index 726341ded..4258d1980 100644
--- a/src/desktop-events.cpp
+++ b/src/desktop-events.cpp
@@ -36,7 +36,7 @@
#include "snap.h"
#include "display/canvas-grid.h"
#include "display/canvas-axonomgrid.h"
-#include "prefs-utils.h"
+#include "preferences.h"
#include "helper/action.h"
#include "tools-switch.h"
#include <2geom/point.h>
@@ -52,8 +52,9 @@ int sp_desktop_root_handler(SPCanvasItem */*item*/, GdkEvent *event, SPDesktop *
static bool first = true;
if ( first ) {
- if ( prefs_get_int_attribute("options.useextinput", "value", 1)
- && prefs_get_int_attribute("options.switchonextinput", "value", 0) ) {
+ Inkscape::Preferences *prefs = Inkscape::Preferences::get();
+ if ( prefs->getBool("/options/useextinput/value", true)
+ && prefs->getBool("/options/switchonextinput/value") ) {
watch = true;
init_extended();
}