[gnome-games] aisleriot: Only redraw on selection colour change if highlighted



commit 22cf0b1d2355781d8c743bdcd0248de91f263e34
Author: Christian Persch <chpe gnome org>
Date:   Mon Jan 4 14:09:05 2010 +0100

    aisleriot: Only redraw on selection colour change if highlighted

 aisleriot/slot-renderer.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/aisleriot/slot-renderer.c b/aisleriot/slot-renderer.c
index 3edf5e1..ff91067 100644
--- a/aisleriot/slot-renderer.c
+++ b/aisleriot/slot-renderer.c
@@ -111,7 +111,8 @@ sync_style_selection_color (ArStyle *style,
 
   priv->highlight_color = color;
 
-  clutter_actor_queue_redraw (CLUTTER_ACTOR (srend));
+  if (priv->show_highlight)
+    clutter_actor_queue_redraw (CLUTTER_ACTOR (srend));
 }
 
 static void
@@ -153,7 +154,7 @@ aisleriot_slot_renderer_class_init (AisleriotSlotRendererClass *klass)
 
   pspec = g_param_spec_int ("highlight", NULL, NULL,
                             -1, G_MAXINT, G_MAXINT,
-                               G_PARAM_READWRITE |
+                            G_PARAM_READWRITE |
                             G_PARAM_STATIC_STRINGS);
   g_object_class_install_property (gobject_class, PROP_HIGHLIGHT, pspec);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]