GPaste.GnomeShellClient

g GObject.GInterface GObject.GInterface Gio.AsyncInitable Gio.AsyncInitable GObject.GInterface->Gio.AsyncInitable Gio.DBusInterface Gio.DBusInterface GObject.GInterface->Gio.DBusInterface Gio.Initable Gio.Initable GObject.GInterface->Gio.Initable GObject.Object GObject.Object Gio.DBusProxy Gio.DBusProxy GObject.Object->Gio.DBusProxy GPaste.GnomeShellClient GPaste.GnomeShellClient Gio.AsyncInitable->Gio.DBusProxy Gio.DBusInterface->Gio.DBusProxy Gio.DBusProxy->GPaste.GnomeShellClient Gio.Initable->Gio.DBusProxy

Subclasses:

None

Methods

Inherited:

Gio.DBusProxy (25), GObject.Object (37), Gio.AsyncInitable (4), Gio.DBusInterface (3), Gio.Initable (2)

Structs:

GObject.ObjectClass (5)

class

new (callback, *user_data)

class

new_finish (result)

class

new_sync ()

grab_accelerator (accelerator, callback, *user_data)

grab_accelerator_finish (result)

grab_accelerator_sync (accelerator)

grab_accelerators (accelerators, callback, *user_data)

grab_accelerators_finish (result)

grab_accelerators_sync (accelerators)

ungrab_accelerator (action, callback, *user_data)

ungrab_accelerator_finish (result)

ungrab_accelerator_sync (action)

Virtual Methods

Inherited:

Gio.DBusProxy (2), GObject.Object (7), Gio.AsyncInitable (2), Gio.DBusInterface (3), Gio.Initable (1)

Properties

Inherited:

Gio.DBusProxy (9)

Signals

Inherited:

Gio.DBusProxy (2), GObject.Object (1)

Name

Short Description

accelerator-activated

The “accelerator-activated” signal is emitted when gnome-shell notifies us that an accelerator has been pressed.

Fields

Inherited:

Gio.DBusProxy (2), GObject.Object (1)

Class Details

class GPaste.GnomeShellClient(**kwargs)
Bases:

Gio.DBusProxy

Abstract:

No

Structure:

GPaste.GnomeShellClientClass

classmethod new(callback, *user_data)
Parameters:

Create a new instance of GPaste.GnomeShellClient

classmethod new_finish(result)
Parameters:

result (Gio.AsyncResult) –

Raises:

GLib.Error

Return type:

GPaste.GnomeShellClient

classmethod new_sync()
Raises:

GLib.Error

Returns:

a newly allocated GPaste.GnomeShellClient free it with GObject.Object.unref

Return type:

GPaste.GnomeShellClient

Create a new instance of GPaste.GnomeShellClient

grab_accelerator(accelerator, callback, *user_data)
Parameters:

Grab a keybinding

grab_accelerator_finish(result)
Parameters:

result (Gio.AsyncResult) – A Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to the async call.

Raises:

GLib.Error

Returns:

the action id corresultponding

Return type:

int

Grab a keybinding

grab_accelerator_sync(accelerator)
Parameters:

accelerator (GPaste.GnomeShellAccelerator) – a GPaste.GnomeShellAccelerator instance

Raises:

GLib.Error

Returns:

the action id corresponding

Return type:

int

Grab a keybinding

grab_accelerators(accelerators, callback, *user_data)
Parameters:

Grab some keybindings

grab_accelerators_finish(result)
Parameters:

result (Gio.AsyncResult) – A Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to the async call.

Raises:

GLib.Error

Returns:

the action ids corresultponding

Return type:

int

Grab some keybindings

grab_accelerators_sync(accelerators)
Parameters:

accelerators ([GPaste.GnomeShellAccelerator]) – an array of GPaste.GnomeShellAccelerator instances

Raises:

GLib.Error

Returns:

the action ids corresponding

Return type:

int

Grab some keybindings

ungrab_accelerator(action, callback, *user_data)
Parameters:

Ungrab a keybinding

ungrab_accelerator_finish(result)
Parameters:

result (Gio.AsyncResult) – A Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to the async call.

Raises:

GLib.Error

Returns:

whether the ungrab was succesful or not

Return type:

bool

Ungrab a keybinding

ungrab_accelerator_sync(action)
Parameters:

action (int) – the action id corresponding to the keybinding

Raises:

GLib.Error

Returns:

whether the ungrab was succesful or not

Return type:

bool

Ungrab a keybinding

Signal Details

GPaste.GnomeShellClient.signals.accelerator_activated(gnome_shell_client, id)
Signal Name:

accelerator-activated

Flags:

RUN_LAST

Parameters:
  • gnome_shell_client (GPaste.GnomeShellClient) – The object which received the signal

  • id (int) – the id of the activated accelerator

The “accelerator-activated” signal is emitted when gnome-shell notifies us that an accelerator has been pressed.