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:
Philip Chimento 2025-01-12 14:58:34 -08:00
parent 26bc1d08ec
commit 3d71dcaa64

View File

@ -135,9 +135,10 @@ gi_callable_info_can_throw_gerror (GICallableInfo *info)
* *
* Determines if the callable info is a method. * Determines if the callable info is a method.
* *
* For [class@GIRepository.VFuncInfo]s, [class@GIRepository.CallbackInfo]s, and * For [class@GIRepository.VFuncInfo]s and [class@GIRepository.SignalInfo]s,
* [class@GIRepository.SignalInfo]s, this is always true. Otherwise, this looks * this is always true, and for [class@GIRepository.CallbackInfo]s always false.
* at the `GI_FUNCTION_IS_METHOD` flag on the [class@GIRepository.FunctionInfo]. * Otherwise, this looks at the `GI_FUNCTION_IS_METHOD` flag on the
* [class@GIRepository.FunctionInfo].
* *
* Concretely, this function returns whether * Concretely, this function returns whether
* [method@GIRepository.CallableInfo.get_n_args] matches the number of arguments * [method@GIRepository.CallableInfo.get_n_args] matches the number of arguments