mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 00:34:59 +01:00
fundamentally change ArdourButton PangoLayout handling
This fixes issues where button text was set during static initialization where the widget style was not yet available, and a lot of related issues where the text was set before style.
This commit is contained in:
parent
8fc6205e4e
commit
4a00bdf04a
5 changed files with 159 additions and 92 deletions
|
|
@ -7075,7 +7075,7 @@ Editor::lock ()
|
|||
|
||||
ArdourButton* b = manage (new ArdourButton);
|
||||
b->set_name ("lock button");
|
||||
b->set_markup (string_compose ("<span size=\"large\" weight=\"bold\">%1</span>", _("Click to unlock")));
|
||||
b->set_text (_("Click to unlock"));
|
||||
b->signal_clicked.connect (sigc::mem_fun (*this, &Editor::unlock));
|
||||
lock_dialog->get_vbox()->pack_start (*b);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue