### Constructor

# WebKit2 ContextMenuItem new_with_submenu

#### Declaration [src]

    WebKitContextMenuItem*
    webkit_context_menu_item_new_with_submenu (
      const gchar* label,
      WebKitContextMenu* submenu
    )

#### Description [src]

Creates a new `WebKitContextMenuItem` using the given `label` with a submenu.

#### Parameters

`label` | `const gchar*`
| The menu item label text.
| The data is owned by the caller of the function.
| The value is a NUL terminated UTF-8 string.
`submenu` | `WebKitContextMenu`
| A `WebKitContextMenu` to set.
| The data is owned by the caller of the function.

#### Return value

Returns: | `WebKitContextMenuItem`
| The newly created `WebKitContextMenuItem` object.
| The data is owned by the called function.