[gnome-shell] Pick up change from gradient to solid background
- From: Florian Müllner <fmuellner src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-shell] Pick up change from gradient to solid background
- Date: Wed, 3 Feb 2010 20:08:44 +0000 (UTC)
commit 2b15f38730007314e445bcfa7fabe0f05aada12d
Author: Florian Müllner <fmuellner src gnome org>
Date: Wed Feb 3 17:38:18 2010 +0100
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 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/st/st-widget.c b/src/st/st-widget.c
index 9a6606f..4338982 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]