diff options
author | Ryan Lortie <desrt@desrt.ca> | 2010-05-16 16:56:36 -0400 |
---|---|---|
committer | Ryan Lortie <desrt@desrt.ca> | 2010-05-17 07:16:37 -0400 |
commit | 799e0242ae31dd66b102342927583f1f34806c54 (patch) | |
tree | 974f9d254f21243311ba98cbb1a76b52a68e53e6 /gio/gsettingsbackendinternal.h | |
parent | 61219e264083184eada5c5ef2795b7c531470704 (diff) | |
download | glib-799e0242ae31dd66b102342927583f1f34806c54.tar.gz |
improve thread safety in GDelayedSettingsBackend
- hold a lock while accessing the tree of delayed values
- use weak reference counts with the owner object to avoid doing
g_object_notify on a dead object
- dispatch the "has-unapplied" notify to the proper main context
Diffstat (limited to 'gio/gsettingsbackendinternal.h')
-rw-r--r-- | gio/gsettingsbackendinternal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gio/gsettingsbackendinternal.h b/gio/gsettingsbackendinternal.h index b6679830c..923dbf279 100644 --- a/gio/gsettingsbackendinternal.h +++ b/gio/gsettingsbackendinternal.h @@ -98,5 +98,7 @@ void g_settings_backend_unsubscribe (GSettin G_GNUC_INTERNAL void g_settings_backend_subscribe (GSettingsBackend *backend, const char *name); +G_GNUC_INTERNAL +GMainContext * g_settings_backend_get_active_context (void); #endif /* __G_SETTINGS_BACKEND_INTERNAL_H__ */ |