summaryrefslogtreecommitdiffstats
path: root/src/live_effects/parameter/unit.cpp
diff options
context:
space:
mode:
authorJabiertxof <jtx@jtx>2017-04-28 19:42:36 +0000
committerJabiertxof <jtx@jtx>2017-04-28 19:42:36 +0000
commit52054e24f8b98c07753588c726a1e777bad7245b (patch)
tree69b39b96cef271d0bb9acbf2d75f7329bee6c2d9 /src/live_effects/parameter/unit.cpp
parentUpdate to trunk (diff)
downloadinkscape-52054e24f8b98c07753588c726a1e777bad7245b.tar.gz
inkscape-52054e24f8b98c07753588c726a1e777bad7245b.zip
Reset
(bzr r15620.1.9)
Diffstat (limited to 'src/live_effects/parameter/unit.cpp')
-rw-r--r--src/live_effects/parameter/unit.cpp16
1 files changed, 3 insertions, 13 deletions
diff --git a/src/live_effects/parameter/unit.cpp b/src/live_effects/parameter/unit.cpp
index 684f29555..b6ea99bfe 100644
--- a/src/live_effects/parameter/unit.cpp
+++ b/src/live_effects/parameter/unit.cpp
@@ -55,9 +55,9 @@ UnitParam::param_set_default()
}
void
-UnitParam::param_update_default(const gchar * default_unit)
+UnitParam::param_update_default(const Glib::ustring default_unit)
{
- defunit = unit_table.getUnit((Glib::ustring)default_unit);
+ defunit = unit_table.getUnit(default_unit);
}
void
@@ -75,18 +75,8 @@ UnitParam::get_abbreviation() const
Gtk::Widget *
UnitParam::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::RegisteredUnitMenu* unit_menu = Gtk::manage(
- new Inkscape::UI::Widget::RegisteredUnitMenu(label,
+ new Inkscape::UI::Widget::RegisteredUnitMenu(param_label,
param_key,
*param_wr,
param_effect->getRepr(),