From 2b15f38730007314e445bcfa7fabe0f05aada12d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Wed, 3 Feb 2010 17:38:18 +0100 Subject: [PATCH] Pick up change from gradient to solid background On style changes from gradient to solid backgrounds, the new background must be drawn unconditionally, not depending on whether old and new background color differ. https://bugzilla.gnome.org/show_bug.cgi?id=608914 --- src/st/st-widget.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/st/st-widget.c b/src/st/st-widget.c index 9a6606fb7..433898226 100644 --- a/src/st/st-widget.c +++ b/src/st/st-widget.c @@ -778,12 +778,11 @@ st_widget_real_style_changed (StWidget *self) if (gradient == ST_GRADIENT_NONE) { - if (gradient != priv->bg_gradient_type) - has_changed = TRUE; - priv->bg_gradient_type = gradient; st_theme_node_get_background_color (theme_node, &color); - if (!clutter_color_equal (&color, &priv->bg_color)) + if (gradient != priv->bg_gradient_type || + !clutter_color_equal (&color, &priv->bg_color)) { + priv->bg_gradient_type = gradient; priv->bg_color = color; priv->draw_bg_color = color.alpha != 0; has_changed = TRUE;