mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-13 11:15:12 +01:00
gicallableinfo: Fix inaccuracy in is_method docs
The docs say that gi_callable_info_is_method() on a GICallbackInfo always returns TRUE. But the source code says it always returns FALSE.
This commit is contained in:
parent
26bc1d08ec
commit
3d71dcaa64
@ -135,9 +135,10 @@ gi_callable_info_can_throw_gerror (GICallableInfo *info)
|
||||
*
|
||||
* Determines if the callable info is a method.
|
||||
*
|
||||
* For [class@GIRepository.VFuncInfo]s, [class@GIRepository.CallbackInfo]s, and
|
||||
* [class@GIRepository.SignalInfo]s, this is always true. Otherwise, this looks
|
||||
* at the `GI_FUNCTION_IS_METHOD` flag on the [class@GIRepository.FunctionInfo].
|
||||
* For [class@GIRepository.VFuncInfo]s and [class@GIRepository.SignalInfo]s,
|
||||
* this is always true, and for [class@GIRepository.CallbackInfo]s always false.
|
||||
* Otherwise, this looks at the `GI_FUNCTION_IS_METHOD` flag on the
|
||||
* [class@GIRepository.FunctionInfo].
|
||||
*
|
||||
* Concretely, this function returns whether
|
||||
* [method@GIRepository.CallableInfo.get_n_args] matches the number of arguments
|
||||
|
Loading…
x
Reference in New Issue
Block a user