icon helper: Properly update on style change

A GtkCssChange of NULL means 'everything changed!'.
This commit is contained in:
Matthias Clasen 2016-03-04 08:50:52 -05:00
parent 6b2cde94b4
commit 7382f3c347

View File

@ -69,11 +69,11 @@ gtk_icon_helper_invalidate_for_change (GtkIconHelper *self,
{
GtkIconHelperPrivate *priv = self->priv;
if (change &&
if (change == NULL ||
((gtk_css_style_change_affects (change, GTK_CSS_AFFECTS_SYMBOLIC_ICON) &&
priv->rendered_surface_is_symbolic) ||
(gtk_css_style_change_affects (change, GTK_CSS_AFFECTS_ICON) &&
!priv->rendered_surface_is_symbolic)))
(gtk_css_style_change_affects (change, GTK_CSS_AFFECTS_ICON) &&
!priv->rendered_surface_is_symbolic)))
{
gtk_icon_helper_invalidate (self);
}