diff options
author | Robin Gareus <robin@gareus.org> | 2014-09-06 00:41:56 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2014-09-06 00:41:56 +0200 |
commit | 4a00bdf04a8c1a88a3041b409c6a8db601b8adc9 (patch) | |
tree | b8ee8a4d09a840bf9120d257e0ebd32d36c0aa72 /gtk2_ardour/editor_ops.cc | |
parent | 8fc6205e4ed451d0a27120342ea8cb160e4798e3 (diff) |
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.
Diffstat (limited to 'gtk2_ardour/editor_ops.cc')
-rw-r--r-- | gtk2_ardour/editor_ops.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc index ff5524ca7c..b44a05ccfb 100644 --- a/gtk2_ardour/editor_ops.cc +++ b/gtk2_ardour/editor_ops.cc @@ -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); |