From 98fb715a90145993422739e71e754c816d34b21b Mon Sep 17 00:00:00 2001 From: Jabier Arraiza Date: Fri, 10 Aug 2018 23:42:30 +0200 Subject: Add a label to apply theme sugested by Christoffer Holmstedt on mailing list --- src/ui/widget/preferences-widget.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/ui/widget') 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); } -- cgit v1.2.3