IBus.Bus¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w/co |
Client use only |
||
r/w/co |
Connect asynchronously to the bus |
Signals¶
- Inherited:
Name |
Short Description |
|---|---|
Emitted when |
|
Emitted when |
|
Emitted when global engine is changed. |
|
Emitted when global shortcut key is responded. |
|
Emitted when D-Bus name owner is changed. |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
Class Details¶
- class IBus.Bus(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
An
IBus.Busconnects with IBus daemon.- classmethod new()¶
- Returns:
A newly allocated
IBus.Businstance, and the instance is not floating.- Return type:
Creates a new
IBus.Businstance.
- classmethod new_async()¶
- Returns:
A newly allocated
IBus.Businstance, and the instance is not floating.- Return type:
Creates a new
IBus.Businstance. The instance will asynchronously connect to the IBus daemon.
- classmethod new_async_client()¶
- Returns:
A newly allocated
IBus.Businstance, and the instance is not floating.- Return type:
Creates a new
IBus.Businstance for client use only. It will possibly be limited in what it can do.The instance will asynchronously connect to the IBus daemon.
- add_match(rule)¶
- Parameters:
rule (
str) – Match rule.- Returns:
- Return type:
Add a match rule to an
IBus.Bussynchronously.
- add_match_async(rule, timeout_msec, cancellable, callback, *user_data)¶
- Parameters:
rule (
str) – Match rule.timeout_msec (
int) – The timeout in milliseconds or -1 to use the default timeout.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNoneif you don’t care about the result of the method invocation.
Add a match rule to an
IBus.Busasynchronously.
- add_match_async_finish(res)¶
- Parameters:
res (
Gio.AsyncResult) – AGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toIBus.Bus.add_match_async().- Raises:
- Returns:
- Return type:
Finishes an operation started with
IBus.Bus.add_match_async().
- create_input_context(client_name)¶
- Parameters:
client_name (
str) – Name of client.- Returns:
A newly allocated
IBus.InputContextif the “CreateInputContext” call is succeeded,Noneotherwise.- Return type:
Create an input context for client synchronously.
- create_input_context_async(client_name, timeout_msec, cancellable, callback, *user_data)¶
- Parameters:
client_name (
str) – Name of client.timeout_msec (
int) – The timeout in milliseconds or -1 to use the default timeout.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied. It should not beNone.
Create an input context for client asynchronously.
- create_input_context_async_finish(res)¶
- Parameters:
res (
Gio.AsyncResult) – AGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toIBus.Bus.create_input_context_async().- Raises:
- Returns:
A newly allocated
IBus.InputContextif the “CreateInputContext” call is succeeded,Noneotherwise.- Return type:
Finishes an operation started with
IBus.Bus.create_input_context_async().
- current_input_context()¶
- Returns:
Name of the currently focused
IBus.InputContextif the “CurrentInputContext” call succeeded,Noneotherwise. The return value must be freed withGLib.free().- Return type:
Get the current focused input context synchronously.
- current_input_context_async(timeout_msec, cancellable, callback, *user_data)¶
- Parameters:
timeout_msec (
int) – The timeout in milliseconds or -1 to use the default timeout.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNoneif you don’t care about the result of the method invocation.
Get the current focused input context asynchronously.
- current_input_context_async_finish(res)¶
- Parameters:
res (
Gio.AsyncResult) – AGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toIBus.Bus.current_input_context_async().- Raises:
- Returns:
Name of the currently focused
IBus.InputContextif the “CurrentInputContext” call succeeded,Noneotherwise. The return value must be freed withGLib.free().- Return type:
Finishes an operation started with
IBus.Bus.current_input_context_async().
- exit(restart)¶
- Parameters:
restart (
bool) – Whether restarting the ibus.- Returns:
- Return type:
Exit or restart ibus-daemon synchronously.
- exit_async(restart, timeout_msec, cancellable, callback, *user_data)¶
- Parameters:
restart (
bool) – Whether restarting the ibus.timeout_msec (
int) – The timeout in milliseconds or -1 to use the default timeout.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNoneif you don’t care about the result of the method invocation.
Exit or restart ibus-daemon asynchronously.
- exit_async_finish(res)¶
- Parameters:
res (
Gio.AsyncResult) – AGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toIBus.Bus.exit_async().- Raises:
- Returns:
- Return type:
Finishes an operation started with
IBus.Bus.exit_async().
- get_config()¶
- Returns:
An
IBus.Configobject which is configurable with self.- Return type:
Get the config instance from
IBus.Bus.
- get_connection()¶
- Returns:
A
Gio.DBusConnectionof anIBus.Businstance.- Return type:
Gets a
Gio.DBusConnectionof anIBus.Businstance.
- get_engines_by_names(names)¶
- Parameters:
- Returns:
A
None-terminated array of engines.- Return type:
Get engines by given names synchronously. If some engine names do not exist, this function will simply ignore them, and return rest of engines. TODO(penghuang): add asynchronous version
- get_global_engine()¶
- Returns:
The description of current global engine, or
Noneif there is no global engine.- Return type:
Get the description of current global engine synchronously.
- get_global_engine_async(timeout_msec, cancellable, callback, *user_data)¶
- Parameters:
timeout_msec (
int) – The timeout in milliseconds or -1 to use the default timeout.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNoneif you don’t care about the result of the method invocation.
Get the description of current global engine asynchronously.
- get_global_engine_async_finish(res)¶
- Parameters:
res (
Gio.AsyncResult) – AGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toIBus.Bus.get_global_engine_async_finish().- Raises:
- Returns:
The description of current global engine, or
Noneif there is no global engine.- Return type:
Finishes an operation started with
IBus.Bus.get_global_engine_async_finish().
- get_ibus_property(property_name)¶
- Parameters:
property_name (
str) – property name in org.freedesktop.DBus.Properties.Get- Returns:
The value in org.freedesktop.DBus.Properties.Get The returned value must be freed with
GLib.Variant.unref().- Return type:
Get org.freedesktop.DBus.Properties.
- get_ibus_property_async(property_name, timeout_msec, cancellable, callback, *user_data)¶
- Parameters:
property_name (
str) – property name in org.freedesktop.DBus.Properties.Gettimeout_msec (
int) – The timeout in milliseconds or -1 to use the default timeout.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNoneif you don’t care about the result of the method invocation.
Get org.freedesktop.DBus.Properties asynchronously.
- get_ibus_property_async_finish(res)¶
- Parameters:
res (
Gio.AsyncResult) – AGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toIBus.Bus.get_ibus_property_async().- Raises:
- Returns:
The value in org.freedesktop.DBus.Properties.Get The returned value must be freed with
GLib.Variant.unref().- Return type:
Finishes an operation started with
IBus.Bus.get_ibus_property_async().
- get_name_owner(name)¶
- Parameters:
name (
str) – Name.- Returns:
Owner of the name. The returned value must be freed with
GLib.free().- Return type:
Return the name owner synchronously.
- get_name_owner_async(name, timeout_msec, cancellable, callback, *user_data)¶
- Parameters:
name (
str) – Name.timeout_msec (
int) – The timeout in milliseconds or -1 to use the default timeout.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNoneif you don’t care about the result of the method invocation.
Return the name owner asynchronously.
- get_name_owner_async_finish(res)¶
- Parameters:
res (
Gio.AsyncResult) – AGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toIBus.Bus.get_name_owner_async().- Raises:
- Returns:
Owner of the name. The returned value must be freed with
GLib.free().- Return type:
Finishes an operation started with
IBus.Bus.get_name_owner_async().
- get_service_name()¶
- Returns:
at dbus name.
- Return type:
Return the main service name to use for calls on the ibus connection.
- get_use_global_engine()¶
-
Check if the bus’s “use_global_engine” option is enabled or not synchronously.
Deprecated since version 1.5.3: Currently global engine is always used.
- get_use_global_engine_async(timeout_msec, cancellable, callback, *user_data)¶
- Parameters:
timeout_msec (
int) – The timeout in milliseconds or -1 to use the default timeout.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNoneif you don’t care about the result of the method invocation.
Check if the bus’s “use_global_engine” option is enabled or not asynchronously.
Deprecated since version 1.5.3: Currently global engine is always used.
- get_use_global_engine_async_finish(res)¶
- Parameters:
res (
Gio.AsyncResult) – AGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toIBus.Bus.get_use_global_engine_async().- Raises:
- Returns:
Trueif “use_global_engine” option is enabled.- Return type:
Finishes an operation started with
IBus.Bus.get_use_global_engine_async().Deprecated since version 1.5.3: Currently global engine is always used.
- get_use_sys_layout()¶
-
Check if the bus’s “use_sys_layout” option is enabled or not synchronously.
Deprecated since version 1.5.3: Read dconf value /desktop/ibus/general/use_system_keyboard_layout instead.
- get_use_sys_layout_async(timeout_msec, cancellable, callback, *user_data)¶
- Parameters:
timeout_msec (
int) – The timeout in milliseconds or -1 to use the default timeout.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNoneif you don’t care about the result of the method invocation.
Check if the bus’s “use_sys_layout” option is enabled or not asynchronously.
Deprecated since version 1.5.3: Read dconf value /desktop/ibus/general/use_system_keyboard_layout instead.
- get_use_sys_layout_async_finish(res)¶
- Parameters:
res (
Gio.AsyncResult) – AGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toIBus.Bus.get_use_sys_layout_async().- Raises:
- Returns:
Trueif “use_sys_layout” option is enabled.- Return type:
Finishes an operation started with
IBus.Bus.get_use_sys_layout_async().Deprecated since version 1.5.3: Read dconf value /desktop/ibus/general/use_system_keyboard_layout instead.
- hello()¶
- Returns:
The unique name of IBus process in DBus.
- Return type:
This function sends a “HELLO” message to DBus daemon, which replies the unique name of current IBus process.
- is_global_engine_enabled()¶
-
Check if the current global engine is enabled or not synchronously.
Deprecated since version 1.5.3: Probably this would be used for Chrome OS only. Currently global engine is always used and
IBus.Bus.get_global_engine() returnsNoneuntil the first global engine is assigned. You can useIBus.set_log_handler() to disable a warning whenIBus.Bus.get_global_engine() returnsNone.
- is_global_engine_enabled_async(timeout_msec, cancellable, callback, *user_data)¶
- Parameters:
timeout_msec (
int) – The timeout in milliseconds or -1 to use the default timeout.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNoneif you don’t care about the result of the method invocation.
Check if the current global engine is enabled or not asynchronously.
Deprecated since version 1.5.3: Probably this would be used for Chrome OS only. Currently global engine is always used and
IBus.Bus.get_global_engine() returnsNoneuntil the first global engine is assigned. You can useIBus.set_log_handler() to disable a warning whenIBus.Bus.get_global_engine() returnsNone.
- is_global_engine_enabled_async_finish(res)¶
- Parameters:
res (
Gio.AsyncResult) – AGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toIBus.Bus.is_global_engine_enabled_async().- Raises:
- Returns:
Trueif the current global engine is enabled.- Return type:
Finishes an operation started with
IBus.Bus.is_global_engine_enabled_async().Deprecated since version 1.5.3: Probably this would be used for Chrome OS only. Currently global engine is always used and
IBus.Bus.get_global_engine() returnsNoneuntil the first global engine is assigned. You can useIBus.set_log_handler() to disable a warning whenIBus.Bus.get_global_engine() returnsNone.
- list_active_engines()¶
- Returns:
A List of active engines.
- Return type:
List active engines synchronously.
Deprecated since version 1.5.3: Read dconf value /desktop/ibus/general/preload-engines instead.
- list_active_engines_async(timeout_msec, cancellable, callback, *user_data)¶
- Parameters:
timeout_msec (
int) – The timeout in milliseconds or -1 to use the default timeout.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNoneif you don’t care about the result of the method invocation.
List active engines asynchronously.
Deprecated since version 1.5.3: Read dconf value /desktop/ibus/general/preload-engines instead.
- list_active_engines_async_finish(res)¶
- Parameters:
res (
Gio.AsyncResult) – AGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toIBus.Bus.list_active_engines_async().- Raises:
- Returns:
A List of active engines.
- Return type:
Finishes an operation started with
IBus.Bus.list_active_engines_async().Deprecated since version 1.5.3: Read dconf value /desktop/ibus/general/preload-engines instead.
- list_engines()¶
- Returns:
A List of engines.
- Return type:
List engines synchronously.
- list_engines_async(timeout_msec, cancellable, callback, *user_data)¶
- Parameters:
timeout_msec (
int) – The timeout in milliseconds or -1 to use the default timeout.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNoneif you don’t care about the result of the method invocation.
List engines asynchronously.
- list_engines_async_finish(res)¶
- Parameters:
res (
Gio.AsyncResult) – AGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toIBus.Bus.list_engines_async().- Raises:
- Returns:
A List of engines.
- Return type:
Finishes an operation started with
IBus.Bus.list_engines_async().
- list_names()¶
- Returns:
Lists that attached to self.
- Return type:
[
str]
Return lists that attached to self.
[FixMe] Not implemented yet, only return
None.[FixMe] Add async version.
- list_queued_owners(name)¶
- Parameters:
name (
str) – Name to be queried.- Returns:
The unique bus names of connections currently queued for name.
- Return type:
[
str]
Lists the unique bus names of connections currently queued for a bus name. FIXME add an asynchronous version.
- name_has_owner(name)¶
- Parameters:
name (
str) – Name to be checked.- Returns:
- Return type:
Checks whether the name has owner synchronously.
- name_has_owner_async(name, timeout_msec, cancellable, callback, *user_data)¶
- Parameters:
name (
str) – Name to be checked.timeout_msec (
int) – The timeout in milliseconds or -1 to use the default timeout.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNoneif you don’t care about the result of the method invocation.
Checks whether the name has owner asynchronously.
- name_has_owner_async_finish(res)¶
- Parameters:
res (
Gio.AsyncResult) – AGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toIBus.Bus.name_has_owner_async().- Raises:
- Returns:
- Return type:
Finishes an operation started with
IBus.Bus.name_has_owner_async().
- preload_engines(names)¶
- Parameters:
- Returns:
- Return type:
Start bus components by engine names synchronously.
- preload_engines_async(names, timeout_msec, cancellable, callback, *user_data)¶
- Parameters:
timeout_msec (
int) – The timeout in milliseconds or -1 to use the default timeout.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNoneif you don’t care about the result of the method invocation.
Start bus components by engine names asynchronously.
- preload_engines_async_finish(res)¶
- Parameters:
res (
Gio.AsyncResult) – AGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toIBus.Bus.preload_engines_async().- Raises:
- Returns:
- Return type:
Finishes an operation started with
IBus.Bus.preload_engines_async().
- register_component(component)¶
- Parameters:
component (
IBus.Component) – A input engine component.- Returns:
Trueif the “RegisterComponent” call is successful,Falseotherwise.- Return type:
Register a component to an
IBus.Bussynchronously.
- register_component_async(component, timeout_msec, cancellable, callback, *user_data)¶
- Parameters:
component (
IBus.Component) – A input engine component.timeout_msec (
int) – The timeout in milliseconds or -1 to use the default timeout.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNoneif you don’t care about the result of the method invocation.
Register a component to an
IBus.Busasynchronously.
- register_component_async_finish(res)¶
- Parameters:
res (
Gio.AsyncResult) – AGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toIBus.Bus.register_component_async().- Raises:
- Returns:
Trueif the “RegisterComponent” call is successful,Falseotherwise.- Return type:
Finishes an operation started with
IBus.Bus.register_component_async().
- release_name(name)¶
- Parameters:
name (
str) – Name to be released.- Returns:
0 if failed; positive number otherwise.
- Return type:
Release a name to IBus daemon synchronously.
- release_name_async(name, timeout_msec, cancellable, callback, *user_data)¶
- Parameters:
name (
str) – Name to be released.timeout_msec (
int) – The timeout in milliseconds or -1 to use the default timeout.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNoneif you don’t care about the result of the method invocation.
Release a name to IBus daemon asynchronously.
- release_name_async_finish(res)¶
- Parameters:
res (
Gio.AsyncResult) – AGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toIBus.Bus.release_name_async().- Raises:
- Returns:
0 if failed; positive number otherwise.
- Return type:
Finishes an operation started with
IBus.Bus.release_name_async().
- remove_match(rule)¶
- Parameters:
rule (
str) – Match rule.- Returns:
- Return type:
Remove a match rule to an
IBus.Bussynchronously.
- remove_match_async(rule, timeout_msec, cancellable, callback, *user_data)¶
- Parameters:
rule (
str) – Match rule.timeout_msec (
int) – The timeout in milliseconds or -1 to use the default timeout.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNoneif you don’t care about the result of the method invocation.
Remove a match rule to an
IBus.Busasynchronously.
- remove_match_async_finish(res)¶
- Parameters:
res (
Gio.AsyncResult) – AGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toIBus.Bus.remove_match_async().- Raises:
- Returns:
- Return type:
Finishes an operation started with
IBus.Bus.remove_match_async().
- request_name(name, flags)¶
- Parameters:
name (
str) – Name to be requested.flags (
int) –IBus.BusNameFlag.
- Returns:
0 if failed;
IBus.BusRequestNameReplyotherwise.- Return type:
Request a name from IBus daemon synchronously.
- request_name_async(name, flags, timeout_msec, cancellable, callback, *user_data)¶
- Parameters:
name (
str) – Name to be requested.flags (
int) – Flags (FixMe).timeout_msec (
int) – The timeout in milliseconds or -1 to use the default timeout.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNoneif you don’t care about the result of the method invocation.
Request a name from IBus daemon asynchronously.
- request_name_async_finish(res)¶
- Parameters:
res (
Gio.AsyncResult) – AGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toIBus.Bus.request_name_async().- Raises:
- Returns:
0 if failed; positive number otherwise.
- Return type:
Finishes an operation started with
IBus.Bus.request_name_async().
- set_global_engine(global_engine)¶
- Parameters:
global_engine (
str) – A new engine name.- Returns:
Trueif the global engine was set successfully.- Return type:
Set current global engine synchronously.
- set_global_engine_async(global_engine, timeout_msec, cancellable, callback, *user_data)¶
- Parameters:
global_engine (
str) – A new engine name.timeout_msec (
int) – The timeout in milliseconds or -1 to use the default timeout.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNoneif you don’t care about the result of the method invocation.
Set current global engine asynchronously.
- set_global_engine_async_finish(res)¶
- Parameters:
res (
Gio.AsyncResult) – AGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toIBus.Bus.set_global_engine_async().- Raises:
- Returns:
- Return type:
Finishes an operation started with
IBus.Bus.set_global_engine_async().
- set_global_shortcut_keys(gtype, keys)¶
- Parameters:
gtype (
IBus.BusGlobalBindingType) – AIBus.BusGlobalBindingType.keys ([
IBus.ProcessKeyEventData]) – ANone-terminated array ofIBus.ProcessKeyEventData. keycode is used for the selecting direction and the forward direction in case of 0, otherwise the backward direction.
- Returns:
- Return type:
Set global shorcut keys for the Wayland session.
New in version 1.5.29.
- set_global_shortcut_keys_async(gtype, keys, timeout_msec, cancellable, callback, *user_data)¶
- Parameters:
gtype (
IBus.BusGlobalBindingType) – AIBus.BusGlobalBindingType.keys ([
IBus.ProcessKeyEventData]) – ANone-terminated array ofIBus.ProcessKeyEventData.timeout_msec (
int) – The timeout in milliseconds or -1 to use the default timeout.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNoneif you don’t care about the result of the method invocation.
Sete global shorcut keys for the Wayland session asynchronously.
New in version 1.5.29.
- set_global_shortcut_keys_async_finish(res)¶
- Parameters:
res (
Gio.AsyncResult) – AGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toIBus.Bus.set_global_shortcut_keys_async().- Raises:
- Returns:
- Return type:
Finishes an operation started with
IBus.Bus.set_global_shortcut_keys_async().New in version 1.5.29.
- set_ibus_property(property_name, value)¶
- Parameters:
property_name (
str) – property name in org.freedesktop.DBus.Properties.Setvalue (
GLib.Variant) – value in org.freedesktop.DBus.Properties.Set
Set org.freedesktop.DBus.Properties.
- set_ibus_property_async(property_name, value, timeout_msec, cancellable, callback, *user_data)¶
- Parameters:
property_name (
str) – property name in org.freedesktop.DBus.Properties.Setvalue (
GLib.Variant) – value in org.freedesktop.DBus.Properties.Settimeout_msec (
int) – The timeout in milliseconds or -1 to use the default timeout.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNoneif you don’t care about the result of the method invocation.
Set org.freedesktop.DBus.Properties asynchronously.
- set_ibus_property_async_finish(res)¶
- Parameters:
res (
Gio.AsyncResult) – AGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toIBus.Bus.set_ibus_property_async().- Raises:
- Returns:
- Return type:
Finishes an operation started with
IBus.Bus.set_ibus_property_async().
Signal Details¶
- IBus.Bus.signals.connected(bus)¶
- Signal Name:
connected- Flags:
- Parameters:
bus (
IBus.Bus) – The object which received the signal
Emitted when
IBus.Busis connected to ibus-daemon.
- IBus.Bus.signals.disconnected(bus)¶
- Signal Name:
disconnected- Flags:
- Parameters:
bus (
IBus.Bus) – The object which received the signal
Emitted when
IBus.Busis disconnected from ibus-daemon.
- IBus.Bus.signals.global_engine_changed(bus, name)¶
- Signal Name:
global-engine-changed- Flags:
- Parameters:
Emitted when global engine is changed.
- IBus.Bus.signals.global_shortcut_key_responded(bus, type, keyval, keycode, state, is_backward)¶
- Signal Name:
global-shortcut-key-responded- Flags:
- Parameters:
Emitted when global shortcut key is responded.
New in version 1.5.32.
- IBus.Bus.signals.name_owner_changed(bus, name, old_owner, new_owner)¶
- Signal Name:
name-owner-changed- Flags:
- Parameters:
Emitted when D-Bus name owner is changed.