summaryrefslogtreecommitdiffstats
path: root/src/live_effects/parameter/bool.cpp
diff options
context:
space:
mode:
authorJabiertxof <jtx@jtx>2017-04-26 23:06:31 +0000
committerJabiertxof <jtx@jtx>2017-04-26 23:06:31 +0000
commitaf42d5456d7f523d6cb259d0e2921234aa887146 (patch)
tree51b34dc9896bbecc7465dde2e772cf52a71b0429 /src/live_effects/parameter/bool.cpp
parentStart adding GUI to prefs (diff)
downloadinkscape-af42d5456d7f523d6cb259d0e2921234aa887146.tar.gz
inkscape-af42d5456d7f523d6cb259d0e2921234aa887146.zip
Add LPE prefs dialog
(bzr r15620.1.4)
Diffstat (limited to 'src/live_effects/parameter/bool.cpp')
-rw-r--r--src/live_effects/parameter/bool.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/live_effects/parameter/bool.cpp b/src/live_effects/parameter/bool.cpp
index cdc988ab2..a031b5ced 100644
--- a/src/live_effects/parameter/bool.cpp
+++ b/src/live_effects/parameter/bool.cpp
@@ -66,8 +66,18 @@ Gtk::Widget *
BoolParam::param_newWidget()
{
if(!hide_widget){
+ Inkscape::Preferences *prefs = Inkscape::Preferences::get();
+ Glib::ustring effectkey = (Glib::ustring)Inkscape::LivePathEffect::LPETypeConverter.get_key(param_effect->effectType());
+ Glib::ustring pref_path = (Glib::ustring)"/live_effects/" +
+ effectkey +
+ (Glib::ustring)"/" +
+ (Glib::ustring)param_key;
+ Glib::ustring label = param_label;
+ if(prefs->getEntry(pref_path).isValid()){
+ label = (Glib::ustring)"* " + param_label;
+ }
Inkscape::UI::Widget::RegisteredCheckButton * checkwdg = Gtk::manage(
- new Inkscape::UI::Widget::RegisteredCheckButton( param_label,
+ new Inkscape::UI::Widget::RegisteredCheckButton( label,
param_tooltip,
param_key,
*param_wr,