From 7382f3c347ffa224b8f1530f532bea01dee6cb4a Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 4 Mar 2016 08:50:52 -0500 Subject: [PATCH] icon helper: Properly update on style change A GtkCssChange of NULL means 'everything changed!'. --- gtk/gtkiconhelper.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gtk/gtkiconhelper.c b/gtk/gtkiconhelper.c index c03c48712b..212eef94fb 100644 --- a/gtk/gtkiconhelper.c +++ b/gtk/gtkiconhelper.c @@ -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); }