mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 16:24:57 +01:00
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:
parent
3d369ef1cc
commit
4c42a77441
1 changed files with 4 additions and 1 deletions
|
|
@ -113,7 +113,10 @@ BoolOption::BoolOption (string const & i, string const & n, sigc::slot<bool> g,
|
||||||
_get (g),
|
_get (g),
|
||||||
_set (s)
|
_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->set_active (_get ());
|
||||||
_button->signal_toggled().connect (sigc::mem_fun (*this, &BoolOption::toggled));
|
_button->signal_toggled().connect (sigc::mem_fun (*this, &BoolOption::toggled));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue