Method

GIRepositoryCallableInfois_method

since: 2.80

Declaration

gboolean
gi_callable_info_is_method (
  GICallableInfo* info
)

Description

Determines if the callable info is a method.

For GIVFuncInfos, GICallbackInfos, and GISignalInfos, this is always true. Otherwise, this looks at the GI_FUNCTION_IS_METHOD flag on the GIFunctionInfo.

Concretely, this function returns whether gi_callable_info_get_n_args() matches the number of arguments in the raw C method. For methods, there is one more C argument than is exposed by introspection: the self or this object.

Available since: 2.80

Return value

Type: gboolean

TRUE if info is a method, FALSE otherwise.