Method

ValentContextget_plugin_settings

unstable since: 1.0

Declaration [src]

GSettings*
valent_context_get_plugin_settings (
  ValentContext* context,
  PeasPluginInfo* plugin_info,
  const char* plugin_key
)

Description [src]

Create a GSettings object for a plugin.

If the plugin is not built-in, an attempt will be made to compile a GSettingsSchema for schema_id, in the module directory of plugin_info.

Available since: 1.0

Parameters

plugin_info

Type: PeasPluginInfo

A PeasPluginInfo

The data is owned by the caller of the method.
plugin_key

Type: const char*

An external data key.

The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.

Return value

Type: GSettings

The new GSettings object.

The caller of the method takes ownership of the data, and is responsible for freeing it.
The return value can be NULL.