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:
Robin Gareus 2014-09-06 00:41:56 +02:00
parent 8fc6205e4e
commit 4a00bdf04a
5 changed files with 159 additions and 92 deletions

View file

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