label: Redraw when text attrs are affected by css change

GtkWidget doesn't do it automatically and probably shouldn't
This commit is contained in:
Timm Bäder 2020-04-14 15:22:52 +02:00
parent 9f6ec5b7d4
commit 5d61abd748

View File

@ -3306,7 +3306,12 @@ gtk_label_css_changed (GtkWidget *widget,
attrs_affected = FALSE;
if (change == NULL || attrs_affected || (self->select_info && self->select_info->links))
gtk_label_update_layout_attributes (self, new_attrs);
{
gtk_label_update_layout_attributes (self, new_attrs);
if (attrs_affected)
gtk_widget_queue_draw (widget);
}
}
static PangoDirection