1
0
mirror of https://gitlab.gnome.org/GNOME/glib.git synced 2025-07-14 22:26:46 +02:00

Binding: bind_property’s @notify func is nullable

This is for destroying resources needed by transformations. But the user
may not need any such resources. Make it obvious that, instead of having
to point to a no-op function, @notify is checked and not called if NULL.

https://bugzilla.gnome.org/show_bug.cgi?id=792098
This commit is contained in:
Daniel Boles
2018-01-01 16:12:15 +00:00
parent 8ade1af707
commit 54b04f74bd

@ -781,8 +781,8 @@ g_binding_unbind (GBinding *binding)
* from the @target to the @source, or %NULL to use the default * from the @target to the @source, or %NULL to use the default
* @user_data: custom data to be passed to the transformation functions, * @user_data: custom data to be passed to the transformation functions,
* or %NULL * or %NULL
* @notify: function to be called when disposing the binding, to free the * @notify: (nullable): a function to call when disposing the binding, to free
* resources used by the transformation functions * resources used by the transformation functions, or %NULL if not required
* *
* Complete version of g_object_bind_property(). * Complete version of g_object_bind_property().
* *