diff options
| author | Ted Gould <ted@gould.cx> | 2008-10-27 18:03:09 +0000 |
|---|---|---|
| committer | Ted Gould <ted@canonical.com> | 2008-10-27 18:03:09 +0000 |
| commit | 7dbe11bc23efa5f51a9b84e7d0f6dd16e63e0902 (patch) | |
| tree | 7d3a2b95b84a03a19cb132cdf88bea0ab6dc4773 /src/desktop-events.cpp | |
| parent | Merging from trunk (diff) | |
| download | inkscape-7dbe11bc23efa5f51a9b84e7d0f6dd16e63e0902.tar.gz inkscape-7dbe11bc23efa5f51a9b84e7d0f6dd16e63e0902.zip | |
From trunk
(bzr r6885)
Diffstat (limited to 'src/desktop-events.cpp')
| -rw-r--r-- | src/desktop-events.cpp | 7 |
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(); } |
