set_menu


Description:

public void set_menu (Menu? menu)

Sets the menu that should be shown when the Application Indicator is activated in the panel.

An application indicator will not be rendered unless it has a menu.

::: important All menu item actions must be prefixed with the ``indicator.`` namespace:

GSimpleaction *pAction = g_simple_action_new ("newimage", NULL);

...

GMenuItem *pItem = g_menu_item_new ("New Image", "indicator.newimage");

...

Wrapper function for property AppIndicator:menu.

Parameters:

this

The Indicator

menu

A `GMenu` to set