GPaste.GnomeShellClient¶
- Subclasses:
None
Methods¶
- Inherited:
Gio.DBusProxy (25), GObject.Object (37), Gio.AsyncInitable (4), Gio.DBusInterface (3), Gio.Initable (2)
- Structs:
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
Properties¶
- Inherited:
Signals¶
- Inherited:
Name |
Short Description |
---|---|
The “accelerator-activated” signal is emitted when gnome-shell notifies us that an accelerator has been pressed. |
Fields¶
- Inherited:
Class Details¶
- class GPaste.GnomeShellClient(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new(callback, *user_data)¶
- Parameters:
callback (
Gio.AsyncReadyCallback
orNone
) – Callback function to invoke when the proxy is ready.
Create a new instance of
GPaste.GnomeShellClient
- classmethod new_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) –- Raises:
- Return type:
- classmethod new_sync()¶
- Raises:
- Returns:
a newly allocated
GPaste.GnomeShellClient
free it withGObject.Object.unref
- Return type:
Create a new instance of
GPaste.GnomeShellClient
- grab_accelerator(accelerator, callback, *user_data)¶
- Parameters:
accelerator (
GPaste.GnomeShellAccelerator
) – aGPaste.GnomeShellAccelerator
instancecallback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
if you don’t care about the result of the method invocation.
Grab a keybinding
- grab_accelerator_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – AGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed to the async call.- Raises:
- Returns:
the action id corresultponding
- Return type:
Grab a keybinding
- grab_accelerator_sync(accelerator)¶
- Parameters:
accelerator (
GPaste.GnomeShellAccelerator
) – aGPaste.GnomeShellAccelerator
instance- Raises:
- Returns:
the action id corresponding
- Return type:
Grab a keybinding
- grab_accelerators(accelerators, callback, *user_data)¶
- Parameters:
accelerators ([
GPaste.GnomeShellAccelerator
]) – an array ofGPaste.GnomeShellAccelerator
instancescallback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
if you don’t care about the result of the method invocation.
Grab some keybindings
- grab_accelerators_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – AGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed to the async call.- Raises:
- Returns:
the action ids corresultponding
- Return type:
Grab some keybindings
- grab_accelerators_sync(accelerators)¶
- Parameters:
accelerators ([
GPaste.GnomeShellAccelerator
]) – an array ofGPaste.GnomeShellAccelerator
instances- Raises:
- Returns:
the action ids corresponding
- Return type:
Grab some keybindings
- ungrab_accelerator(action, callback, *user_data)¶
- Parameters:
action (
int
) – the action id corresponding to the keybindingcallback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
if you don’t care about the result of the method invocation.
Ungrab a keybinding
- ungrab_accelerator_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – AGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed to the async call.- Raises:
- Returns:
whether the ungrab was succesful or not
- Return type:
Ungrab a keybinding
Signal Details¶
- GPaste.GnomeShellClient.signals.accelerator_activated(gnome_shell_client, id)¶
- Signal Name:
accelerator-activated
- Flags:
- Parameters:
gnome_shell_client (
GPaste.GnomeShellClient
) – The object which received the signalid (
int
) – the id of the activated accelerator
The “accelerator-activated” signal is emitted when gnome-shell notifies us that an accelerator has been pressed.