summaryrefslogtreecommitdiff
path: root/gtk2_ardour/option_editor.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2013-01-23 18:40:52 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2013-01-23 18:40:52 +0000
commit4c42a77441e74356cd909d994e270d1e1314aad4 (patch)
tree2bb83eff71234995bf92833bb2176d0e8de706a6 /gtk2_ardour/option_editor.cc
parent3d369ef1ccda9096021a72c057598b6dd00d6b2d (diff)
part two of allow markup to be used in BoolOption items in an option editor
git-svn-id: svn://localhost/ardour2/branches/3.0@13978 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/option_editor.cc')
-rw-r--r--gtk2_ardour/option_editor.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk2_ardour/option_editor.cc b/gtk2_ardour/option_editor.cc
index 832f8a072a..811c443373 100644
--- a/gtk2_ardour/option_editor.cc
+++ b/gtk2_ardour/option_editor.cc
@@ -113,7 +113,10 @@ BoolOption::BoolOption (string const & i, string const & n, sigc::slot<bool> g,
_get (g),
_set (s)
{
- _button = manage (new CheckButton (n));
+ _button = manage (new CheckButton);
+ _label = manage (new Label);
+ _label->set_markup (n);
+ _button->add (*_label);
_button->set_active (_get ());
_button->signal_toggled().connect (sigc::mem_fun (*this, &BoolOption::toggled));
}