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:
parent
f108bf1373
commit
99e31db66e
@ -965,6 +965,11 @@ ArdourButton::on_style_changed (const RefPtr<Gtk::Style>&)
|
|||||||
{
|
{
|
||||||
_update_colors = true;
|
_update_colors = true;
|
||||||
CairoWidget::set_dirty ();
|
CairoWidget::set_dirty ();
|
||||||
|
_char_pixel_width = 0;
|
||||||
|
_char_pixel_height = 0;
|
||||||
|
if (is_realized()) {
|
||||||
|
queue_resize ();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user