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
The section label, or
The argument can be
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string.
GMenuModelwith the items of the submenu.
The data is owned by the caller of the function.
|The caller of the function takes ownership of the data, and is responsible for freeing it.|