Nemo.MenuItem

Nemo.MenuItem

Nemo.MenuItem Reference

## Synopsis

            Nemo.MenuItem
            gobject.GObject

                Nemo.MenuItem
                name
                label
                tooltip
                icon

                activate

                set_submenu
                menu

## Ancestry

    +-- gobject.GObject
        +-- Nemo.MenuItem

## Description

`Nemo.MenuItem` objects are appended to lists to create menus and submenus.

## Properties

> "icon" | Name of the icon to display in the menu item. Default value: None | Read-Write
> "label" | The label to display to the user. Default value: None | Read-Write
> "menu" | The Nemo.Menu menu object belonging to this item. May be None. | Read-Write
> "name" | The name of the item. Default value: None | Read-Write-ConstructOnly
> "priority" | Whether or not to show priority text in toolbars. Default value: True | Read-Write
> "sensitive" | Whether or not the menu item is sensitive. Default value: True | Read-Write
> "tip" | The tooltip for the menu item. Default value: None | Read-Write

## Signals

"activate"

- `callback` `item` `user_param1` `...`

## Constructor

            Nemo.MenuItem
            name
            label
            tooltip
            icon

`name` :

- identifier of the item

`label` :

- the user-visible label for the item

`tooltip` :

- the user-visible tooltip for the item

`icon` :

- Name of the icon to display in the item

Creates a new `Nemo.MenuItem` object.

## Public Methods

### Nemo.MenuItem.activate

    	  activate

Generates the "activate" signal for this `Nemo.MenuItem`.

### Nemo.MenuItem.set_submenu

    	  set_submenu
          menu

`menu` :

- a `Nemo.Menu`

Attaches a `Nemo.Menu` as the submenu for this `Nemo.MenuItem`.

## Signal Details

### The "activate" Nemo.MenuItem Signal

    	  callback
    	  item
            user_param1
    	  ...

`item` :

- the `Nemo.MenuItem` being activated

`user_param1` :

- User-defined parameter the user attaches to the signal connector

`...` :

- Additional parameter(s) the user attaches to the signal connector

Emits the "activate" signal.