diff options
author | Nikias Bassen | 2009-12-19 23:07:21 +0100 |
---|---|---|
committer | Nikias Bassen | 2009-12-19 23:07:21 +0100 |
commit | 0e0f269e9ef77d7a562fb7545de47ee6eeb49d42 (patch) | |
tree | 08d6c60520d02b5e6453925a8414f7b39f4a9085 | |
parent | dfe4f22ae5f86cb6e23ce7aae78a8fe54e9419ae (diff) | |
download | sbmanager-0e0f269e9ef77d7a562fb7545de47ee6eeb49d42.tar.gz sbmanager-0e0f269e9ef77d7a562fb7545de47ee6eeb49d42.tar.bz2 |
Make page indicator dots reactive, but icon drawing needs some rework
-rw-r--r-- | src/sbmanager.c | 5 |
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(); } |