[gnome-games/gnome-2-28: 5/22] aisleriot: partial fix for z-order of empty slots; handles drag case (#575740)
- From: Adi Roiban <adiroiban src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-games/gnome-2-28: 5/22] aisleriot: partial fix for z-order of empty slots; handles drag case (#575740)
- Date: Fri, 27 Nov 2009 05:33:07 +0000 (UTC)
commit d37ef8f54ac5b559df4750c5742cbce973fdfa08
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]