summaryrefslogtreecommitdiffstats
path: root/src/ui/widget/font-selector.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2016-07-28 10:30:52 +0000
committerjabiertxof <info@marker.es>2016-07-28 10:30:52 +0000
commit5c04358b2fd79db36b8064ad5e7a9fd8bbe314bb (patch)
tree8c186776d2b96a3f8df316cb892160be2ab91e56 /src/ui/widget/font-selector.cpp
parentAdd optional linked path (diff)
downloadinkscape-5c04358b2fd79db36b8064ad5e7a9fd8bbe314bb.tar.gz
inkscape-5c04358b2fd79db36b8064ad5e7a9fd8bbe314bb.zip
Finish linked path and add local number format
(bzr r15017.1.9)
Diffstat (limited to 'src/ui/widget/font-selector.cpp')
-rw-r--r--src/ui/widget/font-selector.cpp8
1 files changed, 4 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>")));
}
}