index dbefa1af5a485e40d7357898758f91f4bb899dd9..d249c675c9bfeeb8a3db60ed97a0a2100d8e1192 100644 (file)
--- a/src/svg/svg-color-test.h
+++ b/src/svg/svg-color-test.h
#include <cassert>
#include <cstdlib>
-#include "prefs-utils.h"
+#include "preferences.h"
#include "svg/svg-color.h"
#include "svg/svg-icc-color.h"
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);