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/selcue.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/selcue.cpp') diff --git a/src/selcue.cpp b/src/selcue.cpp index 661f0a2e4..241802a87 100644 --- a/src/selcue.cpp +++ b/src/selcue.cpp @@ -23,7 +23,7 @@ #include "text-editing.h" #include "sp-text.h" #include "sp-flowtext.h" -#include "prefs-utils.h" +#include "preferences.h" #include "selcue.h" Inkscape::SelCue::SelCue(SPDesktop *desktop) @@ -70,15 +70,16 @@ void Inkscape::SelCue::_updateItemBboxes() } _text_baselines.clear(); - gint mode = prefs_get_int_attribute ("options.selcue", "value", MARK); + Inkscape::Preferences *prefs = Inkscape::Preferences::get(); + gint mode = prefs->getInt("/options/selcue/value", MARK); if (mode == NONE) { return; } g_return_if_fail(_selection != NULL); - int prefs_bbox = prefs_get_int_attribute("tools", "bounding_box", 0); - SPItem::BBoxType bbox_type = (prefs_bbox ==0)? + int prefs_bbox = prefs->getBool("/tools/bounding_box"); + SPItem::BBoxType bbox_type = !prefs_bbox ? SPItem::APPROXIMATE_BBOX : SPItem::GEOMETRIC_BBOX; for (GSList const *l = _selection->itemList(); l != NULL; l = l->next) { -- cgit v1.2.3