gsettings: clarify changed signal documentation

Make it clear that this signal is only guaranteed to be emitted when a
key has been read before.

https://bugzilla.gnome.org/show_bug.cgi?id=750257
This commit is contained in:
Lars Uebernickel 2015-06-02 07:10:31 +02:00 committed by Matthias Clasen
parent 9864c8abf5
commit 0e5e3d0d65

View File

@ -730,6 +730,9 @@ g_settings_class_init (GSettingsClass *class)
* This signal supports detailed connections. You can connect to the
* detailed signal "changed::x" in order to only receive callbacks
* when key "x" changes.
*
* Note that @settings only emits this signal if you have read @key at
* least once while a signal handler was already connected for @key.
*/
g_settings_signals[SIGNAL_CHANGED] =
g_signal_new (I_("changed"), G_TYPE_SETTINGS,