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

View File

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