Method

ValentDevicePluginset_menu_action

unstable since: 1.0

Declaration [src]

void
valent_device_plugin_set_menu_action (
  ValentDevicePlugin* plugin,
  const char* action,
  const char* label,
  const char* icon_name
)

Description [src]

Set or remove a device menu action by GAction name.

If label and icon are NULL, action will be removed from the menu.

Available since: 1.0

Parameters

action

Type: const char*

A GAction name.

The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.
label

Type: const char*

A label for the action.

The argument can be NULL.
The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.
icon_name

Type: const char*

An icon for the action.

The argument can be NULL.
The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.