summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2010-01-02 18:42:34 +0100
committerGravatar Martin Szulecki2010-01-02 18:42:34 +0100
commit9bf379b052d27aa785e80d21dc5d0a6a9fa04045 (patch)
treeee7cfba1c1798fb495c0defbd2201fcda9a71488
parent4179dfd4c636a2b4e7f0b24b8f31be578a7e8825 (diff)
downloadsbmanager-9bf379b052d27aa785e80d21dc5d0a6a9fa04045.tar.gz
sbmanager-9bf379b052d27aa785e80d21dc5d0a6a9fa04045.tar.bz2
Move align functions out of loop to avoid unnecessary calls
-rw-r--r--src/sbmanager.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sbmanager.c b/src/sbmanager.c
index 1cbb45d..e9b0aee 100644
--- a/src/sbmanager.c
+++ b/src/sbmanager.c
@@ -1026,9 +1026,9 @@ static void gui_show_icons()
clutter_actor_show(actor);
clutter_container_add_actor(CLUTTER_CONTAINER(grp), actor);
clutter_container_add_actor(CLUTTER_CONTAINER(the_dock), grp);
- gui_dock_align_icons(FALSE);
}
}
+ gui_dock_align_icons(FALSE);
}
clutter_stage_ensure_redraw(CLUTTER_STAGE(stage));
if (sbpages) {
@@ -1056,9 +1056,9 @@ static void gui_show_icons()
clutter_actor_show(actor);
clutter_container_add_actor(CLUTTER_CONTAINER(grp), actor);
clutter_container_add_actor(CLUTTER_CONTAINER(the_sb), grp);
- gui_page_align_icons(j, FALSE);
}
}
+ gui_page_align_icons(j, FALSE);
}
}
clutter_stage_ensure_redraw(CLUTTER_STAGE(stage));