diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2016-07-28 10:30:52 +0000 |
|---|---|---|
| committer | jabiertxof <info@marker.es> | 2016-07-28 10:30:52 +0000 |
| commit | 5c04358b2fd79db36b8064ad5e7a9fd8bbe314bb (patch) | |
| tree | 8c186776d2b96a3f8df316cb892160be2ab91e56 /src/ui/widget | |
| parent | Add optional linked path (diff) | |
| download | inkscape-5c04358b2fd79db36b8064ad5e7a9fd8bbe314bb.tar.gz inkscape-5c04358b2fd79db36b8064ad5e7a9fd8bbe314bb.zip | |
Finish linked path and add local number format
(bzr r15017.1.9)
Diffstat (limited to 'src/ui/widget')
| -rw-r--r-- | src/ui/widget/font-selector.cpp | 8 | ||||
| -rw-r--r-- | src/ui/widget/font-selector.h | 1 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/ui/widget/font-selector.cpp b/src/ui/widget/font-selector.cpp index 6b0bdca36..0fcb307eb 100644 --- a/src/ui/widget/font-selector.cpp +++ b/src/ui/widget/font-selector.cpp @@ -19,7 +19,7 @@ FontSelector::FontSelector(Glib::ustring const &label, Glib::ustring const &tool Glib::ustring const &suffix, Glib::ustring const &icon, bool mnemonic) - :_widget(new Gtk::HBox()), expanded(false) + :_widget(new Gtk::HBox()), expanded(false), _label(label) { Gtk::VBox * vbox_expander = Gtk::manage( new Gtk::VBox() ); GtkWidget *fontsel = sp_font_selector_new(); @@ -35,7 +35,7 @@ FontSelector::FontSelector(Glib::ustring const &label, Glib::ustring const &tool pButton->set_tooltip_text(_("Save the changes to font selector")); vbox_expander->pack_start(*Gtk::manage(Glib::wrap(fontsel)), true, true); vbox_expander->pack_start(*pButton, true, true); - expander = Gtk::manage(new Gtk::Expander(Glib::ustring(_("Font Selector:")))); + expander = Gtk::manage(new Gtk::Expander(label)); expander->add(*vbox_expander); expander->set_expanded(expanded); expander->set_spacing(5); @@ -52,9 +52,9 @@ FontSelector::onExpanderChanged() { expanded = expander->get_expanded(); if(expanded) { - expander->set_label (Glib::ustring(_("Font Selector:"))); + expander->set_label (Glib::ustring(_label)); } else { - expander->set_label (Glib::ustring(_("Font Selector: <b>hided</b>"))); + expander->set_label (Glib::ustring(_label + _(" <b>hided</b>"))); } } diff --git a/src/ui/widget/font-selector.h b/src/ui/widget/font-selector.h index cfea54bde..8146bc370 100644 --- a/src/ui/widget/font-selector.h +++ b/src/ui/widget/font-selector.h @@ -54,6 +54,7 @@ public: protected: Gtk::Widget *_widget; bool expanded; + Glib::ustring _label; Gtk::Expander * expander; SPFontSelector *fsel; Glib::ustring _fontspec; |
