From 21adb30a835cb6991b995a588de336de1765e6b7 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Wed, 5 Dec 2018 14:09:35 +0000 Subject: [PATCH] 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 --- gobject/gtype.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gobject/gtype.h b/gobject/gtype.h index 77e22a0a9..1f6b33b81 100644 --- a/gobject/gtype.h +++ b/gobject/gtype.h @@ -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().