summaryrefslogtreecommitdiffstats
path: root/src/io/sys.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/io/sys.cpp
parentMerging from trunk (diff)
downloadinkscape-7dbe11bc23efa5f51a9b84e7d0f6dd16e63e0902.tar.gz
inkscape-7dbe11bc23efa5f51a9b84e7d0f6dd16e63e0902.zip
From trunk
(bzr r6885)
Diffstat (limited to 'src/io/sys.cpp')
-rw-r--r--src/io/sys.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/io/sys.cpp b/src/io/sys.cpp
index 029ff88fd..96d0ae983 100644
--- a/src/io/sys.cpp
+++ b/src/io/sys.cpp
@@ -23,7 +23,7 @@
#include <glibmm/ustring.h>
#include <gtk/gtkmessagedialog.h>
-#include "prefs-utils.h"
+#include "preferences.h"
#include "sys.h"
#ifdef WIN32
@@ -75,9 +75,10 @@ extern guint update_in_progress;
#define DEBUG_MESSAGE(key, ...) \
{\
- gint dump = prefs_get_int_attribute_limited("options.bulia", #key, 0, 0, 1);\
- gint dumpD = prefs_get_int_attribute_limited("options.bulia", #key"D", 0, 0, 1);\
- gint dumpD2 = prefs_get_int_attribute_limited("options.bulia", #key"D2", 0, 0, 1);\
+ Inkscape::Preferences *prefs = Inkscape::Preferences::get(); \
+ gint dump = prefs->getBool("/options/bulia/" #key) ? 1 : 0;\
+ gint dumpD = prefs->getBool("/options/bulia/" #key"D") ? 1 : 0;\
+ gint dumpD2 = prefs->getBool("/options/bulia/" #key"D2") ? 1 : 0;\
dumpD &= ( (update_in_progress == 0) || dumpD2 );\
if ( dump )\
{\