Deprecate g_binding_get_source() and get_target() in favour of dup_source() and dup_target()

The old functions are not thread-safe by design.
This commit is contained in:
Sebastian Dröge
2020-11-26 19:26:25 +02:00
parent 7367c5d367
commit 52261f0abe
3 changed files with 26 additions and 6 deletions

View File

@@ -1019,6 +1019,9 @@ g_binding_get_flags (GBinding *binding)
* Returns: (transfer none) (nullable): the source #GObject, or %NULL if the
* source does not exist any more.
*
* Deprecated: 2.68: Use g_binding_dup_source() for a safer version of this
* function.
*
* Since: 2.26
*/
GObject *
@@ -1077,6 +1080,9 @@ g_binding_dup_source (GBinding *binding)
* Returns: (transfer none) (nullable): the target #GObject, or %NULL if the
* target does not exist any more.
*
* Deprecated: 2.68: Use g_binding_dup_target() for a safer version of this
* function.
*
* Since: 2.26
*/
GObject *