AppleOpenSource/WebKit2-7609.3.5.1.3/Shared/API/glib/WebKitContextMenu.cpp
/**
 * webkit_context_menu_move_item:
 * @menu: a #WebKitContextMenu
 * @item: the #WebKitContextMenuItem to add
 * @position: the new position to move the item
 *
 * Moves @item to the given position in the @menu.
 * If @position is negative, or is larger than the number of items
 * in the #WebKitContextMenu, the item is added on to the end of
 * the @menu.
 * The first position is 0.
 */
@menu: a #WebKitContextMenu
@item: the #WebKitContextMenuItem to add
@position: the new position to move the item

Moves @item to the given position in the @menu.
If @position is negative, or is larger than the number of items
in the #WebKitContextMenu, the item is added on to the end of
the @menu.
The first position is 0.
@menu : a #WebKitContextMenu @item : the #WebKitContextMenuItem to add @position : the new position to move the item Moves @item to the given position in the @menu . If @position is negative or is larger than the number of items in the #WebKitContextMenu the item is added on to the end of the @menu . The first position is 0 .
void webkit_context_menu_move_item(WebKitContextMenu* menu, WebKitContextMenuItem* item, int position)
{
    g_return_if_fail(WEBKIT_IS_CONTEXT_MENU(menu));
    g_return_if_fail(WEBKIT_IS_CONTEXT_MENU_ITEM(item));
    if (!g_list_find(menu->priv->items, item))
        return;
    menu->priv->items = g_list_remove(menu->priv->items, item);
    menu->priv->items = g_list_insert(menu->priv->items, item, position);
}
void webkit_context_menu_move_item ( WebKitContextMenu * menu , WebKitContextMenuItem * item , int position ) { g_return_if_fail ( WEBKIT_IS_CONTEXT_MENU ( menu ) ) ; g_return_if_fail ( WEBKIT_IS_CONTEXT_MENU_ITEM ( item ) ) ; if ( ! g_list_find ( menu -> priv -> items , item ) ) return ; menu -> priv -> items = g_list_remove ( menu -> priv -> items , item ) ; menu -> priv -> items = g_list_insert ( menu -> priv -> items , item , position ) ; }
webkit_context_menu_move_item:
 @menu: a #WebKitContextMenu
 @item: the #WebKitContextMenuItem to add
 @position: the new position to move the item
webkit_context_menu_move_item : @menu : a #WebKitContextMenu @item : the #WebKitContextMenuItem to add @position : the new position to move the item