GSettings: support emitting signals in threads

The thread-default context that was in effect at the time that the
GSettings was created will be used for emitting signals on that
GSettings.
This commit is contained in:
Ryan Lortie
2010-05-16 13:02:23 +02:00
parent 849684e540
commit 984258c662
4 changed files with 159 additions and 2 deletions

View File

@@ -48,6 +48,7 @@ typedef void (*GSettingsBackendPathWritableChangedFunc) (GSettin
G_GNUC_INTERNAL
void g_settings_backend_watch (GSettingsBackend *backend,
GMainContext *context,
GSettingsBackendChangedFunc changed,
GSettingsBackendPathChangedFunc path_changed,
GSettingsBackendKeysChangedFunc keys_changed,
@@ -97,4 +98,5 @@ void g_settings_backend_unsubscribe (GSettin
G_GNUC_INTERNAL
void g_settings_backend_subscribe (GSettingsBackend *backend,
const char *name);
#endif /* __G_SETTINGS_BACKEND_INTERNAL_H__ */