[gnome-games] aisleriot: partial fix for z-order of empty slots; handles drag case (#575740)
- From: Jason Clinton <jclinton src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-games] aisleriot: partial fix for z-order of empty slots; handles drag case (#575740)
- Date: Sun, 27 Sep 2009 02:28:43 +0000 (UTC)
commit 7d6d61c88cd4ffbd430116cf9df84d77e508e2b4
Author: Jason D. Clinton <me jasonclinton com>
Date: Sat Sep 26 21:26:57 2009 -0500
aisleriot: partial fix for z-order of empty slots; handles drag case (#575740)
aisleriot/board.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/aisleriot/board.c b/aisleriot/board.c
index 02600ed..bf44528 100644
--- a/aisleriot/board.c
+++ b/aisleriot/board.c
@@ -1268,6 +1268,11 @@ drag_begin (AisleriotBoard *board)
clutter_container_add (CLUTTER_CONTAINER (stage),
priv->moving_cards_group, NULL);
+ if (hslot->cards->len == 0) {
+ clutter_actor_lower_bottom (hslot->slot_renderer);
+ clutter_actor_lower_bottom (priv->baize_actor);
+ }
+
set_cursor (board, CURSOR_CLOSED);
}
@@ -1292,6 +1297,9 @@ drag_end (AisleriotBoard *board,
priv->moving_cards_origin_slot,
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);
+ clutter_actor_raise_top (animation_layer);
}
priv->click_status = STATUS_NONE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]