diff options
author | David Robillard <d@drobilla.net> | 2011-12-13 21:38:09 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-12-13 21:38:09 +0000 |
commit | 635cf8f91b2405dec530ac813d02a7440c3c836b (patch) | |
tree | a7dcb75e96728ff2acd19f00f5367ca660032c50 /src | |
parent | 4cdd7331a69e2f714b440644bd36334031cfbccc (diff) | |
download | ganv-635cf8f91b2405dec530ac813d02a7440c3c836b.tar.gz ganv-635cf8f91b2405dec530ac813d02a7440c3c836b.tar.bz2 ganv-635cf8f91b2405dec530ac813d02a7440c3c836b.zip |
Remove ganv_item_raise and ganv_item_lower.
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@3869 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r-- | src/canvas-base.c | 80 |
1 files changed, 0 insertions, 80 deletions
diff --git a/src/canvas-base.c b/src/canvas-base.c index 8a0cd4b..ef523f0 100644 --- a/src/canvas-base.c +++ b/src/canvas-base.c @@ -482,86 +482,6 @@ put_item_after(GList* link, GList* before) } /** - * ganv_item_raise: - * @item: A canvas item. - * @positions: Number of steps to raise the item. - * - * Raises the item in its parent's stack by the specified number of positions. - * If the number of positions is greater than the distance to the top of the - * stack, then the item is put at the top. - **/ -void -ganv_item_raise(GanvItem* item, int positions) -{ - GList* link, * before; - GanvGroup* parent; - - g_return_if_fail(GANV_IS_ITEM(item)); - g_return_if_fail(positions >= 0); - - if (!item->parent || ( positions == 0) ) { - return; - } - - parent = GANV_GROUP(item->parent); - link = g_list_find(parent->item_list, item); - g_assert(link != NULL); - - for (before = link; positions && before; positions--) { - before = before->next; - } - - if (!before) { - before = parent->item_list_end; - } - - if (put_item_after(link, before)) { - redraw_if_visible(item); - item->canvas->need_repick = TRUE; - } -} - -/** - * ganv_item_lower: - * @item: A canvas item. - * @positions: Number of steps to lower the item. - * - * Lowers the item in its parent's stack by the specified number of positions. - * If the number of positions is greater than the distance to the bottom of the - * stack, then the item is put at the bottom. - **/ -void -ganv_item_lower(GanvItem* item, int positions) -{ - GList* link, * before; - GanvGroup* parent; - - g_return_if_fail(GANV_IS_ITEM(item)); - g_return_if_fail(positions >= 1); - - if (!item->parent || ( positions == 0) ) { - return; - } - - parent = GANV_GROUP(item->parent); - link = g_list_find(parent->item_list, item); - g_assert(link != NULL); - - if (link->prev) { - for (before = link->prev; positions && before; positions--) { - before = before->prev; - } - } else { - before = NULL; - } - - if (put_item_after(link, before)) { - redraw_if_visible(item); - item->canvas->need_repick = TRUE; - } -} - -/** * ganv_item_raise_to_top: * @item: A canvas item. * |