diff options
author | Nikias Bassen | 2009-12-25 15:04:37 +0100 |
---|---|---|
committer | Nikias Bassen | 2009-12-25 15:04:37 +0100 |
commit | aac359ee78746785f9796cb7343ba9dbb610abe2 (patch) | |
tree | c010a861945bdc9a3732a7725662d3860aa8ec08 | |
parent | a9d13e910fd33414dc7c9f679918f004521e7b54 (diff) | |
download | sbmanager-aac359ee78746785f9796cb7343ba9dbb610abe2.tar.gz sbmanager-aac359ee78746785f9796cb7343ba9dbb610abe2.tar.bz2 |
Limit maximum number of icons in dock
-rw-r--r-- | src/sbmanager.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sbmanager.c b/src/sbmanager.c index 509ab7d..3ed19bd 100644 --- a/src/sbmanager.c +++ b/src/sbmanager.c @@ -677,7 +677,7 @@ static gboolean stage_motion (ClutterActor *actor, ClutterMotionEvent *event, gp GList *pageitems = g_list_nth_data(sbpages, current_page); sbpages = g_list_remove(sbpages, pageitems); pageitems = g_list_remove(pageitems, selected_item); - if (center_y >= dock_area.y1) { + if (center_y >= dock_area.y1 && (g_list_length(dockitems) < num_dock_items)) { printf("regular icon is moving inside the dock!\n"); selected_item->is_dock_item = TRUE; } else { |