Function
PurpleActionMenunew
since: 3.0
Declaration [src]
PurpleActionMenu*
purple_action_menu_new (
const gchar* label,
GCallback callback,
gpointer data,
GList* children
)
Description [src]
Creates a new PurpleActionMenu.
Available since: 3.0
This function is not directly available to language bindings.
Parameters
label
-
Type:
const gchar*
The text label to display for this action.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. callback
-
Type:
GCallback
The function to be called when the action is used on the selected item.
data
-
Type:
gpointer
Additional data to be passed to the callback.
The argument can be NULL
.The data is owned by the caller of the function. children
-
Type: A list of
PurpleActionMenu*
Menu actions to be added as a submenu of this action.
The called function takes ownership of the data, and is responsible for freeing it.
Return value
Type: PurpleActionMenu
The PurpleActionMenu.
The caller of the function takes ownership of the data, and is responsible for freeing it. |