summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2009-12-19 23:07:21 +0100
committerGravatar Nikias Bassen2009-12-19 23:07:21 +0100
commit0e0f269e9ef77d7a562fb7545de47ee6eeb49d42 (patch)
tree08d6c60520d02b5e6453925a8414f7b39f4a9085
parentdfe4f22ae5f86cb6e23ce7aae78a8fe54e9419ae (diff)
downloadsbmanager-0e0f269e9ef77d7a562fb7545de47ee6eeb49d42.tar.gz
sbmanager-0e0f269e9ef77d7a562fb7545de47ee6eeb49d42.tar.bz2
Make page indicator dots reactive, but icon drawing needs some rework
-rw-r--r--src/sbmanager.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sbmanager.c b/src/sbmanager.c
index 58b2967..2734a45 100644
--- a/src/sbmanager.c
+++ b/src/sbmanager.c
@@ -285,8 +285,9 @@ static gboolean get_icons(gpointer data)
sbpages = g_list_append(sbpages, page);
if (page_indicator) {
ClutterActor *actor = clutter_clone_new(page_indicator);
- clutter_actor_reparent(actor, page_indicator_group);
- g_signal_connect(actor, "button-press-event", G_CALLBACK(page_indicator_clicked), GUINT_TO_POINTER(p));
+ clutter_actor_unparent(actor);
+ clutter_actor_set_reactive(actor, TRUE);
+ g_signal_connect(actor, "button-press-event", G_CALLBACK(page_indicator_clicked), GUINT_TO_POINTER(p-1));
clutter_container_add_actor(CLUTTER_CONTAINER(page_indicator_group), actor);
page_indicator_group_align();
}