[gnome-games] aisleriot: resolve z-order for empty slots; handles selection case (#575740)
- From: Jason Clinton <jclinton src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-games] aisleriot: resolve z-order for empty slots; handles selection case (#575740)
- Date: Sun, 27 Sep 2009 04:29:50 +0000 (UTC)
commit decad2f0d9acc4637c79e2b4f04dff98cdc41166
Author: Jason D. Clinton <me jasonclinton com>
Date: Sat Sep 26 23:28:57 2009 -0500
aisleriot: resolve z-order for empty slots; handles selection case (#575740)
aisleriot/board.c | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/aisleriot/board.c b/aisleriot/board.c
index af5119e..24a6c95 100644
--- a/aisleriot/board.c
+++ b/aisleriot/board.c
@@ -985,6 +985,15 @@ check_animations_cb (gpointer user_data)
animations->len, (const AisleriotAnimStart *) animations->data,
n_unexposed_animated_cards);
+ if (slot->cards->len == 0) {
+ clutter_actor_lower_bottom (slot->slot_renderer);
+ clutter_actor_lower_bottom (priv->baize_actor);
+ } else {
+ clutter_actor_raise_top (slot->slot_renderer);
+ ClutterActor *animation_layer = CLUTTER_ACTOR(aisleriot_slot_renderer_get_animation_layer(AISLERIOT_SLOT_RENDERER(slot->slot_renderer)));
+ clutter_actor_raise_top (animation_layer);
+ }
+
/* Set the old cards back to the new cards */
aisleriot_game_reset_old_cards (slot);
}
@@ -1288,7 +1297,7 @@ drag_end (AisleriotBoard *board,
priv->moving_cards->data,
priv->moving_cards->len);
clutter_actor_raise_top (priv->moving_cards_origin_slot->slot_renderer);
- ClutterActor *animation_layer = aisleriot_slot_renderer_get_animation_layer(priv->moving_cards_origin_slot->slot_renderer);
+ ClutterActor *animation_layer = CLUTTER_ACTOR(aisleriot_slot_renderer_get_animation_layer(AISLERIOT_SLOT_RENDERER(priv->moving_cards_origin_slot->slot_renderer)));
clutter_actor_raise_top (animation_layer);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]