Gnm.Action

Fields

Name

Type

Access

Description

always_available

bool

r/w

data

object

r/w

handler

Gnm.ActionHandler

r/w

icon_name

str

r/w

id

str

r/w

label

str

r/w

notify

GLib.DestroyNotify

r/w

ref_count

int

r/w

Methods

class

group_add_action (group, act)

class

group_add_actions (group, actions, n, user)

class

new (name, label, icon, always_available, handler, *data)

ref ()

unref ()

Details

class Gnm.Action
classmethod group_add_action(group, act)
Parameters:
classmethod group_add_actions(group, actions, n, user)
Parameters:
classmethod new(name, label, icon, always_available, handler, *data)
Parameters:
  • name (str) – action ID.

  • label (str) – label.

  • icon (str) – icon name.

  • always_available (bool) – whether the action should always be available.

  • handler (Gnm.ActionHandler) – the handler.

  • data (object or None) – user data for handler

Returns:

the newly allocated Gnm.Action.

Return type:

Gnm.Action

ref()
Returns:

a new reference to self.

Return type:

Gnm.Action or None

unref()