AppleOpenSource/WebKit2-7609.3.5.1.3/Shared/API/glib/WebKitContextMenu.cpp
/**
 * webkit_context_menu_new_with_items:
 * @items: (element-type WebKitContextMenuItem): a #GList of #WebKitContextMenuItem
 *
 * Creates a new #WebKitContextMenu object to be used as a submenu of an existing
 * #WebKitContextMenu with the given initial items.
 * See also webkit_context_menu_new()
 *
 * Returns: The newly created #WebKitContextMenu object
 */


Creates a new #WebKitContextMenu object to be used as a submenu of an existing
#WebKitContextMenu with the given initial items.

The newly created #WebKitContextMenu object
Creates a new #WebKitContextMenu object to be used as a submenu of an existing #WebKitContextMenu with the given initial items . The newly created #WebKitContextMenu object
WebKitContextMenu* webkit_context_menu_new_with_items(GList* items)
{
    WebKitContextMenu* menu = webkit_context_menu_new();
    g_list_foreach(items, reinterpret_cast<GFunc>(reinterpret_cast<GCallback>(g_object_ref_sink)), 0);
    menu->priv->items = g_list_copy(items);
    return menu;
}
WebKitContextMenu * webkit_context_menu_new_with_items ( GList * items ) { WebKitContextMenu * menu = webkit_context_menu_new ( ) ; g_list_foreach ( items , reinterpret_cast < GFunc > ( reinterpret_cast < GCallback > ( g_object_ref_sink ) ) , 0 ) ; menu -> priv -> items = g_list_copy ( items ) ; return menu ; }
webkit_context_menu_new_with_items:
 @items: (element-type WebKitContextMenuItem): a #GList of #WebKitContextMenuItem
webkit_context_menu_new_with_items : @items : ( element - type WebKitContextMenuItem ) : a #GList of #WebKitContextMenuItem