From 7dbe11bc23efa5f51a9b84e7d0f6dd16e63e0902 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Mon, 27 Oct 2008 13:03:09 -0500 Subject: From trunk (bzr r6885) --- src/io/sys.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/io/sys.cpp') 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 #include -#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 )\ {\ -- cgit v1.2.3