mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-16 15:14:17 +00:00
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:
parent
9f6ec5b7d4
commit
5d61abd748
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user