[gtk+] icon helper: Properly update on style change
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] icon helper: Properly update on style change
- Date: Fri, 4 Mar 2016 13:51:36 +0000 (UTC)
commit 7382f3c347ffa224b8f1530f532bea01dee6cb4a
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Mar 4 08:50:52 2016 -0500
icon helper: Properly update on style change
A GtkCssChange of NULL means 'everything changed!'.
gtk/gtkiconhelper.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkiconhelper.c b/gtk/gtkiconhelper.c
index c03c487..212eef9 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]