summaryrefslogtreecommitdiffstats
path: root/src/live_effects/parameter/random.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2017-04-27 10:05:03 +0000
committerjabiertxof <info@marker.es>2017-04-27 10:05:03 +0000
commit18e032118bbb1718778c6f2e5e55cdb1723dc1ce (patch)
tree9463d22e1cc138e5c5a08a30b86347981f667fee /src/live_effects/parameter/random.cpp
parentUpdate to trunk (diff)
downloadinkscape-18e032118bbb1718778c6f2e5e55cdb1723dc1ce.tar.gz
inkscape-18e032118bbb1718778c6f2e5e55cdb1723dc1ce.zip
Add end of preferences GUI
(bzr r15620.1.6)
Diffstat (limited to 'src/live_effects/parameter/random.cpp')
-rw-r--r--src/live_effects/parameter/random.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/live_effects/parameter/random.cpp b/src/live_effects/parameter/random.cpp
index 90e53ca0e..bcba05399 100644
--- a/src/live_effects/parameter/random.cpp
+++ b/src/live_effects/parameter/random.cpp
@@ -129,8 +129,18 @@ RandomParam::resetRandomizer()
Gtk::Widget *
RandomParam::param_newWidget()
{
+ 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::RegisteredRandom* regrandom = Gtk::manage(
- new Inkscape::UI::Widget::RegisteredRandom( param_label,
+ new Inkscape::UI::Widget::RegisteredRandom( label,
param_tooltip,
param_key,
*param_wr,