| Top |
An IBusRegistry loads IBus component files and generates the cache files.
see_also: IBusComponent
void
ibus_registry_load (IBusRegistry *registry);
Read all XML files in a IBus component directory (typically /usr/share/ibus/component/ *.xml) and update the registry object. IBUS_COMPONENT_PATH environment valuable is also available for the custom component directories, whose delimiter is ':'.
void ibus_registry_load_in_dir (IBusRegistry *registry,const gchar *dirname);
Read all XML files in dirname
, create a IBusComponent object for each file,
and add the component objects to the registry.
If dirname
is "/usr/share/ibus/component", this API and
ibus_registry_load() are same.
gboolean ibus_registry_load_cache (IBusRegistry *registry,gboolean is_user);
Load the user or system registry cache.
registry |
An IBusRegistry. |
|
is_user |
|
gboolean ibus_registry_load_cache_file (IBusRegistry *registry,const gchar *filename);
Load the registry cache filename
.
gboolean ibus_registry_save_cache (IBusRegistry *registry,gboolean is_user);
Save the registry in a user directory or system directory.
registry |
An IBusRegistry. |
|
is_user |
|
gboolean ibus_registry_save_cache_file (IBusRegistry *registry,const gchar *filename);
Save the registry cache filename
.
void ibus_registry_output (IBusRegistry *registry,GString *output,int indent);
Output IBusRegistry as an XML-formatted string. The output string can be then shown on the screen or written to file.
gboolean
ibus_registry_check_modification (IBusRegistry *registry);
Check if the registry is updated.
GList *
ibus_registry_get_components (IBusRegistry *registry);
List components.
a list of IBusComponent objects.
The caller has to call g_list_free() for the returned list.
[transfer container][element-type IBusComponent]
GList *
ibus_registry_get_observed_paths (IBusRegistry *registry);
List observed paths.
a list of IBusObservedPath objects.
The caller has to call g_list_free() for the returned list.
[transfer container][element-type IBusObservedPath]
void
ibus_registry_start_monitor_changes (IBusRegistry *registry);
Start to monitor observed paths.
“changed” signalvoid user_function (IBusRegistry *registry, gpointer user_data)
Emitted when any observed paths are changed. A method is not associated in this class. the "changed" signal would be handled in other classes.
See also: ibus_registry_start_monitor_changes().
Flags: Run Last