gtype: Clarify type of GInterfaceInitFunc

When passing a function to G_IMPLEMENT_INTERFACE, it actually has to
take two arguments. Who knew?

Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
Philip Withnall 2018-12-05 14:09:35 +00:00
parent d4cc0b32fd
commit 21adb30a83

View File

@ -1779,7 +1779,7 @@ guint g_type_get_type_registration_serial (void);
/**
* G_IMPLEMENT_INTERFACE:
* @TYPE_IFACE: The #GType of the interface to add
* @iface_init: The interface init function
* @iface_init: (type GInterfaceInitFunc): The interface init function, of type #GInterfaceInitFunc
*
* A convenience macro to ease interface addition in the `_C_` section
* of G_DEFINE_TYPE_WITH_CODE() or G_DEFINE_ABSTRACT_TYPE_WITH_CODE().