diff options
| author | Jabiertxof <jtx@jtx> | 2017-04-26 23:06:31 +0000 |
|---|---|---|
| committer | Jabiertxof <jtx@jtx> | 2017-04-26 23:06:31 +0000 |
| commit | af42d5456d7f523d6cb259d0e2921234aa887146 (patch) | |
| tree | 51b34dc9896bbecc7465dde2e772cf52a71b0429 /src/live_effects/parameter/fontbutton.cpp | |
| parent | Start adding GUI to prefs (diff) | |
| download | inkscape-af42d5456d7f523d6cb259d0e2921234aa887146.tar.gz inkscape-af42d5456d7f523d6cb259d0e2921234aa887146.zip | |
Add LPE prefs dialog
(bzr r15620.1.4)
Diffstat (limited to 'src/live_effects/parameter/fontbutton.cpp')
| -rw-r--r-- | src/live_effects/parameter/fontbutton.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/live_effects/parameter/fontbutton.cpp b/src/live_effects/parameter/fontbutton.cpp index 53b8c0612..ee76c4ab9 100644 --- a/src/live_effects/parameter/fontbutton.cpp +++ b/src/live_effects/parameter/fontbutton.cpp @@ -58,8 +58,18 @@ FontButtonParam::param_getSVGValue() const Gtk::Widget * FontButtonParam::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::RegisteredFontButton * fontbuttonwdg = Gtk::manage( - new Inkscape::UI::Widget::RegisteredFontButton( param_label, + new Inkscape::UI::Widget::RegisteredFontButton( label, param_tooltip, param_key, *param_wr, |
