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
This commit is contained in:
Paul Davis 2013-01-23 18:40:52 +00:00
parent 3d369ef1cc
commit 4c42a77441
1 changed files with 4 additions and 1 deletions

View File

@ -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));
}