mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-24 13:06:14 +01:00
change GSettingsBackend.list() API
This commit is contained in:
parent
1b7f645492
commit
84a0605342
@ -269,7 +269,7 @@ g_settings_backend_watch (GSettingsBackend *backend,
|
|||||||
* All access to the list holds a mutex. We have some strategies to
|
* All access to the list holds a mutex. We have some strategies to
|
||||||
* avoid some of the pain that would be associated with that.
|
* avoid some of the pain that would be associated with that.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
watch = g_slice_new (GSettingsBackendWatch);
|
watch = g_slice_new (GSettingsBackendWatch);
|
||||||
watch->context = context;
|
watch->context = context;
|
||||||
watch->target = target;
|
watch->target = target;
|
||||||
|
@ -65,35 +65,37 @@ struct _GSettingsBackendClass
|
|||||||
{
|
{
|
||||||
GObjectClass parent_class;
|
GObjectClass parent_class;
|
||||||
|
|
||||||
gboolean (*supports_context) (const gchar *context);
|
gboolean (*supports_context) (const gchar *context);
|
||||||
|
|
||||||
GVariant * (*read) (GSettingsBackend *backend,
|
GVariant * (*read) (GSettingsBackend *backend,
|
||||||
const gchar *key,
|
const gchar *key,
|
||||||
const GVariantType *expected_type,
|
const GVariantType *expected_type,
|
||||||
gboolean default_value);
|
gboolean default_value);
|
||||||
gchar ** (*list) (GSettingsBackend *backend,
|
gchar ** (*list) (GSettingsBackend *backend,
|
||||||
const gchar *path,
|
const gchar *path,
|
||||||
gsize *length);
|
gchar **resets,
|
||||||
gboolean (*write) (GSettingsBackend *backend,
|
gsize n_resets,
|
||||||
const gchar *key,
|
gsize *length);
|
||||||
GVariant *value,
|
gboolean (*write) (GSettingsBackend *backend,
|
||||||
gpointer origin_tag);
|
const gchar *key,
|
||||||
gboolean (*write_keys) (GSettingsBackend *backend,
|
GVariant *value,
|
||||||
GTree *tree,
|
gpointer origin_tag);
|
||||||
gpointer origin_tag);
|
gboolean (*write_keys) (GSettingsBackend *backend,
|
||||||
void (*reset) (GSettingsBackend *backend,
|
GTree *tree,
|
||||||
const gchar *key,
|
gpointer origin_tag);
|
||||||
gpointer origin_tag);
|
void (*reset) (GSettingsBackend *backend,
|
||||||
void (*reset_path) (GSettingsBackend *backend,
|
const gchar *key,
|
||||||
const gchar *path,
|
gpointer origin_tag);
|
||||||
gpointer origin_tag);
|
void (*reset_path) (GSettingsBackend *backend,
|
||||||
gboolean (*get_writable) (GSettingsBackend *backend,
|
const gchar *path,
|
||||||
const gchar *key);
|
gpointer origin_tag);
|
||||||
void (*subscribe) (GSettingsBackend *backend,
|
gboolean (*get_writable) (GSettingsBackend *backend,
|
||||||
const gchar *name);
|
const gchar *key);
|
||||||
void (*unsubscribe) (GSettingsBackend *backend,
|
void (*subscribe) (GSettingsBackend *backend,
|
||||||
const gchar *name);
|
const gchar *name);
|
||||||
void (*sync) (GSettingsBackend *backend);
|
void (*unsubscribe) (GSettingsBackend *backend,
|
||||||
|
const gchar *name);
|
||||||
|
void (*sync) (GSettingsBackend *backend);
|
||||||
|
|
||||||
gpointer padding[8];
|
gpointer padding[8];
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user