IBus Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties | Signals |
struct IBusBus; struct IBusBusClass; IBusBus * ibus_bus_new (void
); IBusBus * ibus_bus_new_async (void
); gboolean ibus_bus_is_connected (IBusBus *bus
); GDBusConnection * ibus_bus_get_connection (IBusBus *bus
); const gchar * ibus_bus_hello (IBusBus *bus
); guint32 ibus_bus_request_name (IBusBus *bus
,const gchar *name
,guint32 flags
); void ibus_bus_request_name_async (IBusBus *bus
,const gchar *name
,guint flags
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); guint ibus_bus_request_name_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
); guint ibus_bus_release_name (IBusBus *bus
,const gchar *name
); void ibus_bus_release_name_async (IBusBus *bus
,const gchar *name
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); guint ibus_bus_release_name_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
); GList * ibus_bus_list_queued_owners (IBusBus *bus
,const gchar *name
); gboolean ibus_bus_name_has_owner (IBusBus *bus
,const gchar *name
); void ibus_bus_name_has_owner_async (IBusBus *bus
,const gchar *name
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); gboolean ibus_bus_name_has_owner_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
); GList * ibus_bus_list_names (IBusBus *bus
); gboolean ibus_bus_add_match (IBusBus *bus
,const gchar *rule
); void ibus_bus_add_match_async (IBusBus *bus
,const gchar *rule
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); gboolean ibus_bus_add_match_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
); gboolean ibus_bus_remove_match (IBusBus *bus
,const gchar *rule
); void ibus_bus_remove_match_async (IBusBus *bus
,const gchar *rule
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); gboolean ibus_bus_remove_match_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
); gchar * ibus_bus_get_name_owner (IBusBus *bus
,const gchar *name
); void ibus_bus_get_name_owner_async (IBusBus *bus
,const gchar *name
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); gchar * ibus_bus_get_name_owner_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
); gboolean ibus_bus_exit (IBusBus *bus
,gboolean restart
); void ibus_bus_exit_async (IBusBus *bus
,gboolean restart
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); gboolean ibus_bus_exit_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
); IBusInputContext * ibus_bus_create_input_context (IBusBus *bus
,const gchar *client_name
); void ibus_bus_create_input_context_async (IBusBus *bus
,const gchar *client_name
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); IBusInputContext * ibus_bus_create_input_context_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
); gchar * ibus_bus_current_input_context (IBusBus *bus
); void ibus_bus_current_input_context_async (IBusBus *bus
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); gchar * ibus_bus_current_input_context_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
); gboolean ibus_bus_register_component (IBusBus *bus
,IBusComponent *component
); void ibus_bus_register_component_async (IBusBus *bus
,IBusComponent *component
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); gboolean ibus_bus_register_component_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
); GList * ibus_bus_list_engines (IBusBus *bus
); void ibus_bus_list_engines_async (IBusBus *bus
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); GList * ibus_bus_list_engines_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
); GList * ibus_bus_list_active_engines (IBusBus *bus
); void ibus_bus_list_active_engines_async (IBusBus *bus
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); GList * ibus_bus_list_active_engines_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
); IBusEngineDesc ** ibus_bus_get_engines_by_names (IBusBus *bus
,const gchar * const *names
); gboolean ibus_bus_get_use_sys_layout (IBusBus *bus
); void ibus_bus_get_use_sys_layout_async (IBusBus *bus
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); gboolean ibus_bus_get_use_sys_layout_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
); gboolean ibus_bus_get_use_global_engine (IBusBus *bus
); void ibus_bus_get_use_global_engine_async (IBusBus *bus
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); gboolean ibus_bus_get_use_global_engine_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
); gboolean ibus_bus_is_global_engine_enabled (IBusBus *bus
); void ibus_bus_is_global_engine_enabled_async (IBusBus *bus
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); gboolean ibus_bus_is_global_engine_enabled_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
); IBusEngineDesc * ibus_bus_get_global_engine (IBusBus *bus
); void ibus_bus_get_global_engine_async (IBusBus *bus
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); IBusEngineDesc * ibus_bus_get_global_engine_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
); gboolean ibus_bus_set_global_engine (IBusBus *bus
,const gchar *global_engine
); void ibus_bus_set_global_engine_async (IBusBus *bus
,const gchar *global_engine
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); gboolean ibus_bus_set_global_engine_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
); void ibus_bus_set_watch_dbus_signal (IBusBus *bus
,gboolean watch
); void ibus_bus_set_watch_ibus_signal (IBusBus *bus
,gboolean watch
); IBusConfig * ibus_bus_get_config (IBusBus *bus
); gboolean ibus_bus_preload_engines (IBusBus *bus
,const gchar * const *names
); void ibus_bus_preload_engines_async (IBusBus *bus
,const gchar * const *names
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); gboolean ibus_bus_preload_engines_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
); GVariant * ibus_bus_get_ibus_property (IBusBus *bus
,const gchar *property_name
); void ibus_bus_get_ibus_property_async (IBusBus *bus
,const gchar *property_name
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); GVariant * ibus_bus_get_ibus_property_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
); void ibus_bus_set_ibus_property (IBusBus *bus
,const gchar *property_name
,GVariant *value
); void ibus_bus_set_ibus_property_async (IBusBus *bus
,const gchar *property_name
,GVariant *value
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); gboolean ibus_bus_set_ibus_property_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
);
"connected" :Run Last
"disconnected" :Run Last
"global-engine-changed" :Run Last
"name-owner-changed" :Run Last
struct IBusBus;
An opaque data type representing IBus bus (daemon communication) status.
IBusBus * ibus_bus_new (void
);
New an IBusBus instance.
Returns : |
A newly allocated IBusBus instance, and the instance is not floating. |
IBusBus * ibus_bus_new_async (void
);
New an IBusBus instance. The instance will asynchronously connect to the IBus daemon.
Returns : |
A newly allocated IBusBus instance, and the instance is not floating. |
gboolean ibus_bus_is_connected (IBusBus *bus
);
Return TRUE
if bus
is connected to IBus daemon.
|
An IBusBus. |
Returns : |
TRUE if bus is connected, FALSE otherwise. |
GDBusConnection * ibus_bus_get_connection (IBusBus *bus
);
Return GDBusConnection of an IBusBus instance.
const gchar * ibus_bus_hello (IBusBus *bus
);
This function sends a "HELLO" message to DBus daemon, which replies the unique name of current IBus process.
|
An IBusBus. |
Returns : |
The unique name of IBus process in DBus. |
guint32 ibus_bus_request_name (IBusBus *bus
,const gchar *name
,guint32 flags
);
Request a name from IBus daemon synchronously.
|
the IBusBus instance to be processed. |
|
Name to be requested. |
|
IBusBusNameFlag. |
Returns : |
0 if failed; IBusBusRequestNameReply otherwise. |
void ibus_bus_request_name_async (IBusBus *bus
,const gchar *name
,guint flags
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Request a name from IBus daemon asynchronously.
|
An IBusBus. |
|
Name to be requested. |
|
Flags (FixMe). |
|
The timeout in milliseconds or -1 to use the default timeout. |
|
A GCancellable or NULL . |
|
A GAsyncReadyCallback to call when the request is satisfied or NULL
if you don't care about the result of the method invocation. |
|
The data to pass to callback. |
guint ibus_bus_request_name_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
);
Finishes an operation started with ibus_bus_request_name_async()
.
|
An IBusBus. |
|
A GAsyncResult obtained from the GAsyncReadyCallback passed to
ibus_bus_request_name_async() . |
|
Return location for error or NULL . |
Returns : |
0 if failed; positive number otherwise. |
guint ibus_bus_release_name (IBusBus *bus
,const gchar *name
);
Release a name to IBus daemon synchronously.
|
An IBusBus. |
|
Name to be released. |
Returns : |
0 if failed; positive number otherwise. |
void ibus_bus_release_name_async (IBusBus *bus
,const gchar *name
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Release a name to IBus daemon asynchronously.
|
An IBusBus. |
|
Name to be released. |
|
The timeout in milliseconds or -1 to use the default timeout. |
|
A GCancellable or NULL . |
|
A GAsyncReadyCallback to call when the request is satisfied
or NULL if you don't care about the result of the method invocation. |
|
The data to pass to callback. |
guint ibus_bus_release_name_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
);
Finishes an operation started with ibus_bus_release_name_async()
.
|
An IBusBus. |
|
A GAsyncResult obtained from the GAsyncReadyCallback passed to
ibus_bus_release_name_async() . |
|
Return location for error or NULL . |
Returns : |
0 if failed; positive number otherwise. |
GList * ibus_bus_list_queued_owners (IBusBus *bus
,const gchar *name
);
Lists the unique bus names of connections currently queued for a bus name.
FIXME add an asynchronous version.
|
An IBusBus. |
|
Name to be queried. |
Returns : |
The unique bus names of connections currently queued for name . [transfer full][element-type utf8]
|
gboolean ibus_bus_name_has_owner (IBusBus *bus
,const gchar *name
);
Checks whether the name has owner synchronously.
|
An IBusBus. |
|
Name to be checked. |
Returns : |
TRUE if the name has owner, FALSE otherwise. |
void ibus_bus_name_has_owner_async (IBusBus *bus
,const gchar *name
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Checks whether the name has owner asynchronously.
|
An IBusBus. |
|
Name to be checked. |
|
The timeout in milliseconds or -1 to use the default timeout. |
|
A GCancellable or NULL . |
|
A GAsyncReadyCallback to call when the request is satisfied
or NULL if you don't care about the result of the method invocation. |
|
The data to pass to callback. |
gboolean ibus_bus_name_has_owner_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
);
Finishes an operation started with ibus_bus_name_has_owner_async()
.
|
An IBusBus. |
|
A GAsyncResult obtained from the GAsyncReadyCallback passed to
ibus_bus_name_has_owner_async() . |
|
Return location for error or NULL . |
Returns : |
TRUE if the name has owner, FALSE otherwise. |
GList * ibus_bus_list_names (IBusBus *bus
);
Return lists that attached to bus
.
[FixMe] Not implemented yet, only return NULL.
[FixMe] Add async version.
|
An IBusBus. |
Returns : |
Lists that attached to bus . [transfer full][element-type utf8]
|
gboolean ibus_bus_add_match (IBusBus *bus
,const gchar *rule
);
Add a match rule to an IBusBus synchronously.
|
An IBusBus. |
|
Match rule. |
Returns : |
TRUE if the rule is added. FALSE otherwise. |
void ibus_bus_add_match_async (IBusBus *bus
,const gchar *rule
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Add a match rule to an IBusBus asynchronously.
|
An IBusBus. |
|
Match rule. |
|
The timeout in milliseconds or -1 to use the default timeout. |
|
A GCancellable or NULL . |
|
A GAsyncReadyCallback to call when the request is satisfied
or NULL if you don't care about the result of the method invocation. |
|
The data to pass to callback. |
gboolean ibus_bus_add_match_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
);
Finishes an operation started with ibus_bus_add_match_async()
.
|
An IBusBus. |
|
A GAsyncResult obtained from the GAsyncReadyCallback passed to
ibus_bus_add_match_async() . |
|
Return location for error or NULL . |
Returns : |
TRUE if the rule is added. FALSE otherwise. |
gboolean ibus_bus_remove_match (IBusBus *bus
,const gchar *rule
);
Remove a match rule to an IBusBus synchronously.
|
An IBusBus. |
|
Match rule. |
Returns : |
TRUE if the rule is removed. FALSE otherwise. |
void ibus_bus_remove_match_async (IBusBus *bus
,const gchar *rule
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Remove a match rule to an IBusBus asynchronously.
|
An IBusBus. |
|
Match rule. |
|
The timeout in milliseconds or -1 to use the default timeout. |
|
A GCancellable or NULL . |
|
A GAsyncReadyCallback to call when the request is satisfied
or NULL if you don't care about the result of the method invocation. |
|
The data to pass to callback. |
gboolean ibus_bus_remove_match_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
);
Finishes an operation started with ibus_bus_remove_match_async()
.
|
An IBusBus. |
|
A GAsyncResult obtained from the GAsyncReadyCallback passed to
ibus_bus_remove_match_async() . |
|
Return location for error or NULL . |
Returns : |
TRUE if the rule is removed. FALSE otherwise. |
gchar * ibus_bus_get_name_owner (IBusBus *bus
,const gchar *name
);
Return the name owner synchronously.
|
An IBusBus. |
|
Name. |
Returns : |
Owner of the name. The returned value must be freed with g_free() . |
void ibus_bus_get_name_owner_async (IBusBus *bus
,const gchar *name
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Return the name owner asynchronously.
|
An IBusBus. |
|
Name. |
|
The timeout in milliseconds or -1 to use the default timeout. |
|
A GCancellable or NULL . |
|
A GAsyncReadyCallback to call when the request is satisfied
or NULL if you don't care about the result of the method invocation. |
|
The data to pass to callback. |
gchar * ibus_bus_get_name_owner_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
);
Finishes an operation started with ibus_bus_get_name_owner_async()
.
|
An IBusBus. |
|
A GAsyncResult obtained from the GAsyncReadyCallback passed to
ibus_bus_get_name_owner_async() . |
|
Return location for error or NULL . |
Returns : |
Owner of the name. The returned value must be freed with g_free() . |
gboolean ibus_bus_exit (IBusBus *bus
,gboolean restart
);
Exit or restart ibus-daemon synchronously.
|
An IBusBus. |
|
Whether restarting the ibus. |
Returns : |
TRUE if the "Exit" call is suceeded, FALSE otherwise. |
void ibus_bus_exit_async (IBusBus *bus
,gboolean restart
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Exit or restart ibus-daemon asynchronously.
|
An IBusBus. |
|
Whether restarting the ibus. |
|
The timeout in milliseconds or -1 to use the default timeout. |
|
A GCancellable or NULL . |
|
A GAsyncReadyCallback to call when the request is satisfied
or NULL if you don't care about the result of the method invocation. |
|
The data to pass to callback. |
gboolean ibus_bus_exit_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
);
Finishes an operation started with ibus_bus_exit_async()
.
|
An IBusBus. |
|
A GAsyncResult obtained from the GAsyncReadyCallback passed to
ibus_bus_exit_async() . |
|
Return location for error or NULL . |
Returns : |
TRUE if the "Exit" call is suceeded, FALSE otherwise. |
IBusInputContext * ibus_bus_create_input_context (IBusBus *bus
,const gchar *client_name
);
Create an input context for client synchronously.
|
An IBusBus. |
|
Name of client. |
Returns : |
An newly allocated IBusInputContext if the
"CreateInputContext" call is suceeded, NULL otherwise. [transfer full]
|
void ibus_bus_create_input_context_async (IBusBus *bus
,const gchar *client_name
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Create an input context for client asynchronously.
|
An IBusBus. |
|
Name of client. |
|
The timeout in milliseconds or -1 to use the default timeout. |
|
A GCancellable or NULL . |
|
A GAsyncReadyCallback to call when the request is satisfied.
It should not be NULL . |
|
The data to pass to callback. |
IBusInputContext * ibus_bus_create_input_context_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
);
Finishes an operation started with ibus_bus_create_input_context_async()
.
|
An IBusBus. |
|
A GAsyncResult obtained from the GAsyncReadyCallback passed to
ibus_bus_create_input_context_async() . |
|
Return location for error or NULL . |
Returns : |
An newly allocated IBusInputContext if the
"CreateInputContext" call is suceeded, NULL otherwise. [transfer full]
|
gchar * ibus_bus_current_input_context (IBusBus *bus
);
Get the current focused input context synchronously.
|
An IBusBus. |
Returns : |
The named of currently focued IBusInputContext if the
"CurrentInputContext" call suceeded, NULL otherwise. The return
value must be freed with g_free() . |
void ibus_bus_current_input_context_async (IBusBus *bus
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Get the current focused input context asynchronously.
|
An IBusBus. |
|
The timeout in milliseconds or -1 to use the default timeout. |
|
A GCancellable or NULL . |
|
A GAsyncReadyCallback to call when the request is satisfied
or NULL if you don't care about the result of the method invocation. |
|
The data to pass to callback. |
gchar * ibus_bus_current_input_context_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
);
Finishes an operation started with ibus_bus_current_input_context_async()
.
|
An IBusBus. |
|
A GAsyncResult obtained from the GAsyncReadyCallback passed to
ibus_bus_current_input_context_async() . |
|
Return location for error or NULL . |
Returns : |
The named of currently focued IBusInputContext if the
"CurrentInputContext" call suceeded, NULL otherwise. The return
value must be freed with g_free() . |
gboolean ibus_bus_register_component (IBusBus *bus
,IBusComponent *component
);
Register a componet to an IBusBus synchronously.
|
An IBusBus. |
|
A input engine component. |
Returns : |
TRUE if the "RegisterComponent" call is suceeded, FALSE otherwise. |
void ibus_bus_register_component_async (IBusBus *bus
,IBusComponent *component
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Register a componet to an IBusBus asynchronously.
|
An IBusBus. |
|
A input engine component. |
|
The timeout in milliseconds or -1 to use the default timeout. |
|
A GCancellable or NULL . |
|
A GAsyncReadyCallback to call when the request is satisfied
or NULL if you don't care about the result of the method invocation. |
|
The data to pass to callback. |
gboolean ibus_bus_register_component_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
);
Finishes an operation started with ibus_bus_register_component_async()
.
|
An IBusBus. |
|
A GAsyncResult obtained from the GAsyncReadyCallback passed to
ibus_bus_register_component_async() . |
|
Return location for error or NULL . |
Returns : |
TRUE if the "RegisterComponent" call is suceeded, FALSE otherwise. |
GList * ibus_bus_list_engines (IBusBus *bus
);
List engines synchronously.
|
An IBusBus. |
Returns : |
A List of engines. [transfer container][element-type IBusEngineDesc] |
void ibus_bus_list_engines_async (IBusBus *bus
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
List engines asynchronously.
|
An IBusBus. |
|
The timeout in milliseconds or -1 to use the default timeout. |
|
A GCancellable or NULL . |
|
A GAsyncReadyCallback to call when the request is satisfied or NULL
if you don't care about the result of the method invocation. |
|
The data to pass to callback. |
GList * ibus_bus_list_engines_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
);
Finishes an operation started with ibus_bus_list_engines_async()
.
|
An IBusBus. |
|
A GAsyncResult obtained from the GAsyncReadyCallback passed to
ibus_bus_list_engines_async() . |
|
Return location for error or NULL . |
Returns : |
A List of engines. [transfer container][element-type IBusEngineDesc] |
GList * ibus_bus_list_active_engines (IBusBus *bus
);
ibus_bus_list_active_engines
has been deprecated since version 1.5.3 and should not be used in newly-written code. Read dconf value
/desktop/ibus/general/preload-engines instead.
List active engines synchronously.
|
An IBusBus. |
Returns : |
A List of active engines. [transfer container][element-type IBusEngineDesc] |
void ibus_bus_list_active_engines_async (IBusBus *bus
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
ibus_bus_list_active_engines_async
has been deprecated since version 1.5.3 and should not be used in newly-written code. Read dconf value
/desktop/ibus/general/preload-engines instead.
List active engines asynchronously.
|
An IBusBus. |
|
The timeout in milliseconds or -1 to use the default timeout. |
|
A GCancellable or NULL . |
|
A GAsyncReadyCallback to call when the request is satisfied or NULL
if you don't care about the result of the method invocation. |
|
The data to pass to callback. |
GList * ibus_bus_list_active_engines_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
);
ibus_bus_list_active_engines_async_finish
has been deprecated since version 1.5.3 and should not be used in newly-written code. Read dconf value
/desktop/ibus/general/preload-engines instead.
Finishes an operation started with ibus_bus_list_active_engines_async()
.
|
An IBusBus. |
|
A GAsyncResult obtained from the GAsyncReadyCallback passed to
ibus_bus_list_active_engines_async() . |
|
Return location for error or NULL . |
Returns : |
A List of active engines. [transfer container][element-type IBusEngineDesc] |
IBusEngineDesc ** ibus_bus_get_engines_by_names (IBusBus *bus
,const gchar * const *names
);
Get engines by given names synchronously. If some engine names do not exist, this function will simplly ignore them, and return rest of engines. TODO(penghuang): add asynchronous version
|
An IBusBus. |
|
A NULL -terminated array of names. [array zero-terminated=1]
|
Returns : |
A NULL -terminated array of engines. [array zero-terminated=1][transfer full]
|
gboolean ibus_bus_get_use_sys_layout (IBusBus *bus
);
ibus_bus_get_use_sys_layout
has been deprecated since version 1.5.3 and should not be used in newly-written code. Read dconf value
/desktop/ibus/general/use_system_keyboard_layout instead.
Check if the bus's "use_sys_layout" option is enabled or not synchronously.
|
An IBusBus. |
Returns : |
TRUE if "use_sys_layout" option is enabled. |
void ibus_bus_get_use_sys_layout_async (IBusBus *bus
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
ibus_bus_get_use_sys_layout_async
has been deprecated since version 1.5.3 and should not be used in newly-written code. Read dconf value
/desktop/ibus/general/use_system_keyboard_layout instead.
Check if the bus's "use_sys_layout" option is enabled or not asynchronously.
|
An IBusBus. |
|
The timeout in milliseconds or -1 to use the default timeout. |
|
A GCancellable or NULL . |
|
A GAsyncReadyCallback to call when the request is satisfied
or NULL if you don't care about the result of the method invocation. |
|
The data to pass to callback. |
gboolean ibus_bus_get_use_sys_layout_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
);
ibus_bus_get_use_sys_layout_async_finish
has been deprecated since version 1.5.3 and should not be used in newly-written code. Read dconf value
/desktop/ibus/general/use_system_keyboard_layout instead.
Finishes an operation started with ibus_bus_get_use_sys_layout_async()
.
|
An IBusBus. |
|
A GAsyncResult obtained from the GAsyncReadyCallback passed to
ibus_bus_get_use_sys_layout_async() . |
|
Return location for error or NULL . |
Returns : |
TRUE if "use_sys_layout" option is enabled. |
gboolean ibus_bus_get_use_global_engine (IBusBus *bus
);
ibus_bus_get_use_global_engine
has been deprecated since version 1.5.3 and should not be used in newly-written code. Currently global engine is always used.
Check if the bus's "use_global_engine" option is enabled or not synchronously.
|
An IBusBus. |
Returns : |
TRUE if "use_global_engine" option is enabled. |
void ibus_bus_get_use_global_engine_async (IBusBus *bus
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
ibus_bus_get_use_global_engine_async
has been deprecated since version 1.5.3 and should not be used in newly-written code. Currently global engine is always used.
Check if the bus's "use_global_engine" option is enabled or not asynchronously.
|
An IBusBus. |
|
The timeout in milliseconds or -1 to use the default timeout. |
|
A GCancellable or NULL . |
|
A GAsyncReadyCallback to call when the request is satisfied
or NULL if you don't care about the result of the method invocation. |
|
The data to pass to callback. |
gboolean ibus_bus_get_use_global_engine_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
);
ibus_bus_get_use_global_engine_async_finish
has been deprecated since version 1.5.3 and should not be used in newly-written code. Currently global engine is always used.
Finishes an operation started with ibus_bus_get_use_global_engine_async()
.
|
An IBusBus. |
|
A GAsyncResult obtained from the GAsyncReadyCallback passed to
ibus_bus_get_use_global_engine_async() . |
|
Return location for error or NULL . |
Returns : |
TRUE if "use_global_engine" option is enabled. |
gboolean ibus_bus_is_global_engine_enabled (IBusBus *bus
);
ibus_bus_is_global_engine_enabled
has been deprecated since version 1.5.3 and should not be used in newly-written code. Probably this would be used for Chrome OS only.
Currently global engine is always used and ibus_bus_get_global_engine()
returns NULL until the first global engine is assigned.
You can use ibus_set_log_handler()
to disable a warning when
ibus_bus_get_global_engine()
returns NULL.
Check if the current global engine is enabled or not synchronously.
|
An IBusBus. |
Returns : |
TRUE if the current global engine is enabled. |
void ibus_bus_is_global_engine_enabled_async (IBusBus *bus
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
ibus_bus_is_global_engine_enabled_async
has been deprecated since version 1.5.3 and should not be used in newly-written code. Probably this would be used for Chrome OS only.
Currently global engine is always used and ibus_bus_get_global_engine()
Check if the current global engine is enabled or not asynchronously.
|
An IBusBus. |
|
The timeout in milliseconds or -1 to use the default timeout. |
|
A GCancellable or NULL . |
|
A GAsyncReadyCallback to call when the request is satisfied
or NULL if you don't care about the result of the method invocation. |
|
The data to pass to callback. |
gboolean ibus_bus_is_global_engine_enabled_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
);
ibus_bus_is_global_engine_enabled_async_finish
has been deprecated since version 1.5.3 and should not be used in newly-written code. Probably this would be used for Chrome OS only.
Currently global engine is always used and ibus_bus_get_global_engine()
returns NULL until the first global engine is assigned.
You can use ibus_set_log_handler()
to disable a warning when
ibus_bus_get_global_engine()
returns NULL.
Finishes an operation started with ibus_bus_is_global_engine_enabled_async()
.
|
An IBusBus. |
|
A GAsyncResult obtained from the GAsyncReadyCallback passed to
ibus_bus_is_global_engine_enabled_async() . |
|
Return location for error or NULL . |
Returns : |
TRUE if the current global engine is enabled. |
IBusEngineDesc * ibus_bus_get_global_engine (IBusBus *bus
);
Get the description of current global engine synchronously.
|
An IBusBus. |
Returns : |
The description of current global engine,
or NULL if there is no global engine. [transfer none]
|
void ibus_bus_get_global_engine_async (IBusBus *bus
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Get the description of current global engine asynchronously.
|
An IBusBus. |
|
The timeout in milliseconds or -1 to use the default timeout. |
|
A GCancellable or NULL . |
|
A GAsyncReadyCallback to call when the request is satisfied or NULL
if you don't care about the result of the method invocation. |
|
The data to pass to callback. |
IBusEngineDesc * ibus_bus_get_global_engine_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
);
Finishes an operation started with ibus_bus_get_global_engine_async_finish()
.
|
An IBusBus. |
|
A GAsyncResult obtained from the GAsyncReadyCallback passed to
ibus_bus_get_global_engine_async_finish() . |
|
Return location for error or NULL . |
Returns : |
The description of current global engine,
or NULL if there is no global engine. [transfer none]
|
gboolean ibus_bus_set_global_engine (IBusBus *bus
,const gchar *global_engine
);
Set current global engine synchronously.
|
An IBusBus. |
|
A new engine name. |
Returns : |
TRUE if the global engine was set successfully. |
void ibus_bus_set_global_engine_async (IBusBus *bus
,const gchar *global_engine
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Set current global engine asynchronously.
|
An IBusBus. |
|
A new engine name. |
|
The timeout in milliseconds or -1 to use the default timeout. |
|
A GCancellable or NULL . |
|
A GAsyncReadyCallback to call when the request is satisfied
or NULL if you don't care about the result of the method invocation. |
|
The data to pass to callback. |
gboolean ibus_bus_set_global_engine_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
);
Finishes an operation started with ibus_bus_set_global_engine_async()
.
|
An IBusBus. |
|
A GAsyncResult obtained from the GAsyncReadyCallback passed to
ibus_bus_set_global_engine_async() . |
|
Return location for error or NULL . |
Returns : |
TRUE if no IPC errros. FALSE otherwise. |
void ibus_bus_set_watch_dbus_signal (IBusBus *bus
,gboolean watch
);
Start or stop watching the NameOwnerChanged DBus signal.
|
An IBusBus. |
|
TRUE if you want ibusbus to emit "name-owner-changed" signal when
ibus-daemon emits the NameOwnerChanged DBus signal. |
void ibus_bus_set_watch_ibus_signal (IBusBus *bus
,gboolean watch
);
Start or stop watching the GlobalEngineChanged IBus signal.
|
An IBusBus. |
|
TRUE if you want ibusbus to emit "global-engine-changed" signal when
ibus-daemon emits the GlobalEngineChanged IBus signal. |
IBusConfig * ibus_bus_get_config (IBusBus *bus
);
Get the config instance from IBusBus.
|
An IBusBus. |
Returns : |
An IBusConfig object which is configurable with
bus . [transfer none]
|
gboolean ibus_bus_preload_engines (IBusBus *bus
,const gchar * const *names
);
Start bus components by engine names synchronously.
|
An IBusBus. |
|
A NULL -terminated array of engine names. [array zero-terminated=1]
|
Returns : |
TRUE if components start. FALSE otherwise. |
void ibus_bus_preload_engines_async (IBusBus *bus
,const gchar * const *names
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Start bus components by engine names asynchronously.
|
An IBusBus. |
|
A NULL -terminated array of engine names. [array zero-terminated=1]
|
|
The timeout in milliseconds or -1 to use the default timeout. |
|
A GCancellable or NULL . |
|
A GAsyncReadyCallback to call when the request is satisfied
or NULL if you don't care about the result of the method invocation. |
|
The data to pass to callback. |
gboolean ibus_bus_preload_engines_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
);
Finishes an operation started with ibus_bus_preload_engines_async()
.
|
An IBusBus. |
|
A GAsyncResult obtained from the GAsyncReadyCallback passed to
ibus_bus_preload_engines_async() . |
|
Return location for error or NULL . |
Returns : |
TRUE if component starts. FALSE otherwise. |
GVariant * ibus_bus_get_ibus_property (IBusBus *bus
,const gchar *property_name
);
Get org.freedesktop.DBus.Properties.
|
An IBusBus. |
|
property name in org.freedesktop.DBus.Properties.Get |
Returns : |
The value in org.freedesktop.DBus.Properties.Get
The returned value must be freed with g_variant_unref() . [transfer full]
|
void ibus_bus_get_ibus_property_async (IBusBus *bus
,const gchar *property_name
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Get org.freedesktop.DBus.Properties asynchronously.
|
An IBusBus. |
|
property name in org.freedesktop.DBus.Properties.Get |
|
The timeout in milliseconds or -1 to use the default timeout. |
|
A GCancellable or NULL . |
|
A GAsyncReadyCallback to call when the request is satisfied
or NULL if you don't care about the result of the method invocation. |
|
The data to pass to callback. |
GVariant * ibus_bus_get_ibus_property_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
);
Finishes an operation started with ibus_bus_get_ibus_property_async()
.
|
An IBusBus. |
|
A GAsyncResult obtained from the GAsyncReadyCallback passed to
ibus_bus_get_property_async() . |
|
Return location for error or NULL . |
Returns : |
The value in org.freedesktop.DBus.Properties.Get
The returned value must be freed with g_variant_unref() . [transfer full]
|
void ibus_bus_set_ibus_property (IBusBus *bus
,const gchar *property_name
,GVariant *value
);
Set org.freedesktop.DBus.Properties.
|
An IBusBus. |
|
property name in org.freedesktop.DBus.Properties.Set |
|
value in org.freedesktop.DBus.Properties.Set |
void ibus_bus_set_ibus_property_async (IBusBus *bus
,const gchar *property_name
,GVariant *value
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Set org.freedesktop.DBus.Properties asynchronously.
|
An IBusBus. |
|
property name in org.freedesktop.DBus.Properties.Set |
|
value in org.freedesktop.DBus.Properties.Set |
|
The timeout in milliseconds or -1 to use the default timeout. |
|
A GCancellable or NULL . |
|
A GAsyncReadyCallback to call when the request is satisfied
or NULL if you don't care about the result of the method invocation. |
|
The data to pass to callback. |
gboolean ibus_bus_set_ibus_property_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
);
Finishes an operation started with ibus_bus_set_ibus_property_async()
.
|
An IBusBus. |
|
A GAsyncResult obtained from the GAsyncReadyCallback passed to
ibus_bus_set_property_async() . |
|
Return location for error or NULL . |
Returns : |
TRUE if property is set with async. FALSE failed. |
"connect-async"
property "connect-async" gboolean : Read / Write / Construct Only
Whether the IBusBus object should connect asynchronously to the bus.
Default value: FALSE
"connected"
signalvoid user_function (IBusBus *bus,
gpointer user_data) : Run Last
Emitted when IBusBus is connected to ibus-daemon.
|
The IBusBus object which recevied the signal |
|
user data set when the signal handler was connected. |
"disconnected"
signalvoid user_function (IBusBus *bus,
gpointer user_data) : Run Last
Emitted when IBusBus is disconnected from ibus-daemon.
|
The IBusBus object which recevied the signal |
|
user data set when the signal handler was connected. |
"global-engine-changed"
signalvoid user_function (IBusBus *bus,
gchar *name,
gpointer user_data) : Run Last
Emitted when global engine is changed.
|
The IBusBus object which recevied the signal |
|
The name of the new global engine. |
|
user data set when the signal handler was connected. |
"name-owner-changed"
signalvoid user_function (IBusBus *bus,
gchar *name,
gchar *old_owner,
gchar *new_owner,
gpointer user_data) : Run Last
Emitted when D-Bus name owner is changed.
|
The IBusBus object which recevied the signal |
|
The name which ower is changed. |
|
The unique bus name of the old owner. |
|
The unique bus name of the new owner. |
|
user data set when the signal handler was connected. |