diff options
author | Olivier CrĂȘte <olivier.crete@collabora.com> | 2012-04-27 16:39:07 -0400 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.com> | 2012-10-02 13:35:17 -0400 |
commit | 3901964fa0696305a548191cf568eca05a4aec15 (patch) | |
tree | bf8c7d2abc627346d29afda3cda1f6c4a9e59896 /farstream/fs-element-added-notifier.c | |
parent | 44b935ca4b889816a004e413f95bdaa0b4c7156f (diff) | |
download | farstream-3901964fa0696305a548191cf568eca05a4aec15.tar.gz |
elementaddednotifier: Return the signal ID when adding from a keyfile
Diffstat (limited to 'farstream/fs-element-added-notifier.c')
-rw-r--r-- | farstream/fs-element-added-notifier.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/farstream/fs-element-added-notifier.c b/farstream/fs-element-added-notifier.c index d4562165..0cf84c72 100644 --- a/farstream/fs-element-added-notifier.c +++ b/farstream/fs-element-added-notifier.c @@ -351,16 +351,19 @@ _element_foreach_keyfile (const GValue * item, gpointer user_data) * this function has been called. It will take ownership of the * GKeyFile structure. It will first try the group as the element type, if that * does not match, it will check its name. + * + * Returns: The id of the signal connection, this can be used to disconnect + * this property setter using g_signal_handler_disconnect(). */ -void +gulong fs_element_added_notifier_set_properties_from_keyfile ( FsElementAddedNotifier *notifier, GKeyFile *keyfile) { guint i; - g_return_if_fail (FS_IS_ELEMENT_ADDED_NOTIFIER (notifier)); - g_return_if_fail (keyfile); + g_return_val_if_fail (FS_IS_ELEMENT_ADDED_NOTIFIER (notifier), 0); + g_return_val_if_fail (keyfile, 0); for (i = 0; i < notifier->priv->bins->len; i++) { @@ -374,7 +377,7 @@ fs_element_added_notifier_set_properties_from_keyfile ( gst_iterator_free (iter); } - g_signal_connect_data (notifier, "element-added", + return g_signal_connect_data (notifier, "element-added", G_CALLBACK (_bin_added_from_keyfile), keyfile, (GClosureNotify) g_key_file_free, 0); } |