mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01: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:
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
|
||||
* @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().
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user