13
0

add ::set_layout_font (const Pango::FontDescription&) to ArdourButton

This commit is contained in:
Paul Davis 2014-10-21 17:25:50 -04:00
parent 58f7d02bf2
commit 00f604019d
2 changed files with 12 additions and 1 deletions

View File

@ -150,6 +150,16 @@ ArdourButton::~ArdourButton()
}
}
void
ArdourButton::set_layout_font (const Pango::FontDescription& fd)
{
ensure_layout ();
if (_layout) {
_layout->set_font_description (fd);
queue_resize ();
}
}
void
ArdourButton::set_text (const std::string& str)
{

View File

@ -83,8 +83,9 @@ class ArdourButton : public CairoWidget , public Gtkmm2ext::Activatable
void set_distinct_led_click (bool yn);
void set_layout_ellisize_width (int w);
void set_layout_font (const Pango::FontDescription&);
void set_text_ellipsize (Pango::EllipsizeMode);
sigc::signal<void> signal_led_clicked;
sigc::signal<void> signal_clicked;