Thunarx.Menu

g GObject.Object GObject.Object Thunarx.Menu Thunarx.Menu GObject.Object->Thunarx.Menu

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

append_item (item)

get_items ()

prepend_item (item)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Thunarx.Menu(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Thunarx.MenuClass

classmethod new()
Returns:

a newly created Thunarx.Menu

Return type:

Thunarx.Menu

Creates a new menu that can be added to the toolbar or to a contextual menu.

append_item(item)
Parameters:

item (Thunarx.MenuItem) – a Thunarx.MenuItem

get_items()
Returns:

the provided Thunarx.MenuItem list Must be freed with Thunarx.MenuItem.list_free() after usage

Return type:

[Thunarx.MenuItem]

prepend_item(item)
Parameters:

item (Thunarx.MenuItem) – a Thunarx.MenuItem