X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fsvg%2Fsvg-color-test.h;h=d249c675c9bfeeb8a3db60ed97a0a2100d8e1192;hb=429ce09996dfe0ef44a115a89465c69eb4d376a6;hp=dbefa1af5a485e40d7357898758f91f4bb899dd9;hpb=a9dc6f3f0b1112d205d68c867c4a2b006c19f52f;p=inkscape.git diff --git a/src/svg/svg-color-test.h b/src/svg/svg-color-test.h index dbefa1af5..d249c675c 100644 --- a/src/svg/svg-color-test.h +++ b/src/svg/svg-color-test.h @@ -2,7 +2,7 @@ #include #include -#include "prefs-utils.h" +#include "preferences.h" #include "svg/svg-color.h" #include "svg/svg-icc-color.h" @@ -18,12 +18,13 @@ class SVGColorTest : public CxxTest::TestSuite public: void check_rgb24(unsigned const rgb24) { + Inkscape::Preferences *prefs = Inkscape::Preferences::get(); char css[8]; - prefs_set_int_attribute("options.svgoutput", "usenamedcolors", 0); + prefs->setBool("/options/svgoutput/usenamedcolors", false); sp_svg_write_color(css, sizeof(css), rgb24 << 8); TS_ASSERT_EQUALS(sp_svg_read_color(css, 0xff), rgb24 << 8); - prefs_set_int_attribute("options.svgoutput", "usenamedcolors", 1); + prefs->setBool("/options/svgoutput/usenamedcolors", true); sp_svg_write_color(css, sizeof(css), rgb24 << 8); TS_ASSERT_EQUALS(sp_svg_read_color(css, 0xff), rgb24 << 8);