summaryrefslogtreecommitdiffstats
path: root/src/tweak-context.cpp
diff options
context:
space:
mode:
authorMarkus Engel <markus.engel@tum.de>2013-04-21 21:58:15 +0000
committerMarkus Engel <markus.engel@tum.de>2013-04-21 21:58:15 +0000
commitbdde74bbab299f2ee448f1c55469c56a66fb01f7 (patch)
tree45bccef1ec815708f9b54171e2d567344f155074 /src/tweak-context.cpp
parentMore cleaning. (diff)
downloadinkscape-bdde74bbab299f2ee448f1c55469c56a66fb01f7.tar.gz
inkscape-bdde74bbab299f2ee448f1c55469c56a66fb01f7.zip
Removed some unused files; more refactoring in EventContext tree.
(bzr r11608.1.104)
Diffstat (limited to 'src/tweak-context.cpp')
-rw-r--r--src/tweak-context.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/tweak-context.cpp b/src/tweak-context.cpp
index 990a62000..d1cf8bbf9 100644
--- a/src/tweak-context.cpp
+++ b/src/tweak-context.cpp
@@ -297,28 +297,28 @@ void SPTweakContext::setup() {
}
}
-void SPTweakContext::set(Inkscape::Preferences::Entry* val) {
- Glib::ustring path = val->getEntryName();
+void SPTweakContext::set(const Inkscape::Preferences::Entry& val) {
+ Glib::ustring path = val.getEntryName();
if (path == "width") {
- this->width = CLAMP(val->getDouble(0.1), -1000.0, 1000.0);
+ this->width = CLAMP(val.getDouble(0.1), -1000.0, 1000.0);
} else if (path == "mode") {
- this->mode = val->getInt();
+ this->mode = val.getInt();
sp_tweak_update_cursor(this, false);
} else if (path == "fidelity") {
- this->fidelity = CLAMP(val->getDouble(), 0.0, 1.0);
+ this->fidelity = CLAMP(val.getDouble(), 0.0, 1.0);
} else if (path == "force") {
- this->force = CLAMP(val->getDouble(1.0), 0, 1.0);
+ this->force = CLAMP(val.getDouble(1.0), 0, 1.0);
} else if (path == "usepressure") {
- this->usepressure = val->getBool();
+ this->usepressure = val.getBool();
} else if (path == "doh") {
- this->do_h = val->getBool();
+ this->do_h = val.getBool();
} else if (path == "dos") {
- this->do_s = val->getBool();
+ this->do_s = val.getBool();
} else if (path == "dol") {
- this->do_l = val->getBool();
+ this->do_l = val.getBool();
} else if (path == "doo") {
- this->do_o = val->getBool();
+ this->do_o = val.getBool();
}
}