Garcon.MenuItemAction

g GObject.Object GObject.Object Garcon.MenuItemAction Garcon.MenuItemAction GObject.Object->Garcon.MenuItemAction

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

get_command ()

get_icon_name ()

get_name ()

ref ()

set_command (command)

set_icon_name (icon_name)

set_name (name)

unref ()

Virtual Methods

Inherited:

GObject.Object (7)

do_changed ()

Properties

Name

Type

Flags

Short Description

command

str

r/w

Application command

icon-name

str

r/w

Custom icon name

name

str

r/w

Name of the action

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Garcon.MenuItemAction(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Garcon.MenuItemActionClass

classmethod new()
Return type:

Garcon.MenuItemAction

get_command()
Return type:

str

get_icon_name()
Return type:

str

get_name()
Return type:

str

ref()
set_command(command)
Parameters:

command (str) –

set_icon_name(icon_name)
Parameters:

icon_name (str) –

set_name(name)
Parameters:

name (str) –

unref()
do_changed() virtual

Property Details

Garcon.MenuItemAction.props.command
Name:

command

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

Command to be executed when the application action is clicked.

Garcon.MenuItemAction.props.icon_name
Name:

icon-name

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

Name of the custom icon associated with this action.

Garcon.MenuItemAction.props.name
Name:

name

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

Name of the application action (will be displayed in menus etc.).