13
0

Invalidate char_pixel_* on possible font change

So that the padding and other elements always correctly depend on the
font instead of the default GTK font (which might have a wildly
different size from the fixed size fonts of Ardour's custom theme).
This commit is contained in:
Julien "_FrnchFrgg_" RIVAUD 2016-08-20 16:01:15 +02:00
parent f108bf1373
commit 99e31db66e

View File

@ -965,6 +965,11 @@ ArdourButton::on_style_changed (const RefPtr<Gtk::Style>&)
{
_update_colors = true;
CairoWidget::set_dirty ();
_char_pixel_width = 0;
_char_pixel_height = 0;
if (is_realized()) {
queue_resize ();
}
}
void