• Timm Bäder's avatar
    css: Replace _AFFECTS_TEXT with _TEXT_SIZE and _TEXT_CLIP · 492469a9
    Timm Bäder authored
    It was used to mark css properties that affect widgets with text, but it
    caused unnecessary invalidations. E.g. 'color' was marked as
    AFFECTS_TEXT but changing just the color of a label should not
    automatically queue a resize, which is what the code in
    gtk_widget_real_style_updated does.
    Replace this flag with GTK_CSS_AFFECTS_TEXT_SIZE and
    GTK_CSS_AFFECTS_TEXT_CLIP, which GtkWidget can use only if the widget
    actually has text.
gtkcsstypesprivate.h 15.8 KB