summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2010-07-18 23:31:55 +0200
committerGravatar Nikias Bassen2010-07-18 23:31:55 +0200
commit26375471a74e3a2cc957b2fa49ef8d55c50c4ab6 (patch)
tree456ce1c71783c63314a9634d2a461e75dcd9701c /src
parent43140a089d73b7415f052fad0b57bb7172f12e9d (diff)
downloadsbmanager-26375471a74e3a2cc957b2fa49ef8d55c50c4ab6.tar.gz
sbmanager-26375471a74e3a2cc957b2fa49ef8d55c50c4ab6.tar.bz2
Put mini icons in their own ClutterGroup
Diffstat (limited to 'src')
-rw-r--r--src/gui.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui.c b/src/gui.c
index ec17ffb..dab21d3 100644
--- a/src/gui.c
+++ b/src/gui.c
@@ -1275,6 +1275,9 @@ static gboolean subitem_button_release_cb(ClutterActor *actor, ClutterButtonEven
static void gui_draw_subitems(SBItem *item)
{
ClutterActor *grp = clutter_actor_get_parent(item->texture);
+ ClutterActor *minigrp = clutter_group_new();
+ clutter_actor_set_name(minigrp, "mini");
+ clutter_container_add_actor(CLUTTER_CONTAINER(grp), minigrp);
guint i;
for (i = 0; i < g_list_length(item->subitems); i++) {
SBItem *subitem = (SBItem*)g_list_nth_data(item->subitems, i);
@@ -1299,7 +1302,7 @@ static void gui_draw_subitems(SBItem *item)
ClutterActor *suba = clutter_clone_new(subitem->texture);
clutter_actor_unparent(suba);
- clutter_container_add_actor(CLUTTER_CONTAINER(grp), suba);
+ clutter_container_add_actor(CLUTTER_CONTAINER(minigrp), suba);
clutter_actor_set_scale(suba, 0.22, 0.22);
clutter_actor_set_position(suba, 8.0 + (i%3)*15.0, 8.0 + ((double)(int)((int)i/(int)3))*16.0);
if (i < 9)