Method

ValentDevicePluginset_menu_item

unstable since: 1.0

Declaration [src]

void
valent_device_plugin_set_menu_item (
  ValentDevicePlugin* plugin,
  const char* action,
  GMenuItem* item
)

Description [src]

Set or remove a device GMenuItem by GAction name.

If item is 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.
item

Type: GMenuItem

A GMenuItem.

The argument can be NULL.
The data is owned by the caller of the method.