Thunarx.MenuItem: thunarx-python Reference Manual

## Thunarx.MenuItem Thunarx.MenuItem — Thunarx.MenuItem Reference |

## Synopsis

     Thunarx.MenuItem extends, GObject.GInterface {
      set_sensitive(Boolean);
      get_sensitive();
      set_menu(ThunarxMenu);
      activate();
    }

## Ancestry

    +-- GObject.GInterface
        +-- Thunarx.MenuItem

## Description

Each `Thunarx.MenuItem` object is an abstraction of a real menu item.

## Signals

"activate" | `callback();`

## Public Methods

### Thunarx.MenuItem.get_sensitive

    get_sensitive();

Returns :Boolean | Returns whether the menu item is sensitive.

### Thunarx.MenuItem.set_sensitive

    set_sensitive(Boolean);

Returns : | Set whether the menu item is sensitive.

### Thunarx.MenuItem.set_menu

    set_menu(ThunarxMenu);

Returns : | Add a menu to the menu item (i.e. submenu)

### Thunarx.MenuItem.activate

    activate();

Returns : | Emits the ::activate signal on menu_item. This method should not be invoked by thunarx-python plugins, instead the file manager itself will use this method to emit ::activate whenever it notices a change on menu_item.

## Signal Details

### The "activate" Thunarx.MenuItem Signal

Emitted whenever the system notices a change to menu_item.

Thunar plugins should use this signal to stay informed about changes to a menu_item for which they currently display information (i.e. in a Thunarx.PropertyPage), and update it's user interface whenever a change is noticed on menu_item.