Constructor
GioMenuItemnew_submenu
Description
Creates a new GMenuItem
representing a submenu.
This is a convenience API around g_menu_item_new()
and g_menu_item_set_submenu().
Available since: | 2.32 |
Parameters
label |
const gchar* |
The section label, or |
|
The argument can be NULL . | |
The data is owned by the caller of the function. | |
The value is a NUL terminated UTF-8 string. | |
submenu |
GMenuModel |
A |
|
The data is owned by the caller of the function. |
Return value
Returns: | GMenuItem |
A new |
|
The caller of the function takes ownership of the data, and is responsible for freeing it. |