summaryrefslogtreecommitdiffstats
path: root/src/ui/widget/preferences-widget.cpp
diff options
context:
space:
mode:
authorJabier Arraiza <jabier.arraiza@marker.es>2018-08-10 21:42:30 +0000
committerJabier Arraiza <jabier.arraiza@marker.es>2018-08-10 21:42:30 +0000
commit98fb715a90145993422739e71e754c816d34b21b (patch)
tree1c4ef44335953ce387368db440fc1ae1dc4f1a59 /src/ui/widget/preferences-widget.cpp
parentAdd symbolic icons to paint order (diff)
downloadinkscape-98fb715a90145993422739e71e754c816d34b21b.tar.gz
inkscape-98fb715a90145993422739e71e754c816d34b21b.zip
Add a label to apply theme sugested by Christoffer Holmstedt on mailing list
Diffstat (limited to 'src/ui/widget/preferences-widget.cpp')
-rw-r--r--src/ui/widget/preferences-widget.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ui/widget/preferences-widget.cpp b/src/ui/widget/preferences-widget.cpp
index 14d9621c6..c96bf88f1 100644
--- a/src/ui/widget/preferences-widget.cpp
+++ b/src/ui/widget/preferences-widget.cpp
@@ -94,8 +94,9 @@ void DialogPage::add_line(bool indent,
// Add a label in the first column if provided
if (label != "")
{
- Gtk::Label* label_widget = Gtk::manage(new Gtk::Label(label, Gtk::ALIGN_START,
+ Gtk::Label* label_widget = Gtk::manage(new Gtk::Label("", Gtk::ALIGN_START,
Gtk::ALIGN_CENTER, true));
+ label_widget->set_markup(label);
label_widget->set_mnemonic_widget(widget);
if (indent) {
@@ -133,7 +134,8 @@ void DialogPage::add_line(bool indent,
// Add a label on the right of the widget if desired
if (suffix != "")
{
- Gtk::Label* suffix_widget = Gtk::manage(new Gtk::Label(suffix , Gtk::ALIGN_START , Gtk::ALIGN_CENTER, true));
+ Gtk::Label* suffix_widget = Gtk::manage(new Gtk::Label("" , Gtk::ALIGN_START , Gtk::ALIGN_CENTER, true));
+ suffix_widget->set_markup(suffix);
hb->pack_start(*suffix_widget,false,false);
}