Constructor
NautilusMenuItemnew
Declaration [src]
NautilusMenuItem*
nautilus_menu_item_new (
const char* name,
const char* label,
const char* tip,
const char* icon
)
Parameters
name |
const char* |
The identifier for the menu item. |
|
The data is owned by the caller of the function. | |
The string is a NUL terminated UTF-8 string. | |
label |
const char* |
The user-visible label of the menu item. |
|
The data is owned by the caller of the function. | |
The string is a NUL terminated UTF-8 string. | |
tip |
const char* |
The tooltip of the menu item. |
|
The argument can be NULL . | |
The data is owned by the caller of the function. | |
The string is a NUL terminated UTF-8 string. | |
icon |
const char* |
The name of the icon to display in the menu item. |
|
The argument can be NULL . | |
The data is owned by the caller of the function. | |
The string is a NUL terminated UTF-8 string. |
Return value
Returns: | NautilusMenuItem |
A new |
|
The caller of the function takes ownership of the data, and is responsible for freeing it. |