[glib: 1/2] gtype: Clarify type of GInterfaceInitFunc
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/2] gtype: Clarify type of GInterfaceInitFunc
- Date: Mon, 7 Jan 2019 14:41:12 +0000 (UTC)
commit 21adb30a835cb6991b995a588de336de1765e6b7
Author: Philip Withnall <withnall endlessm com>
Date: Wed Dec 5 14:09:35 2018 +0000
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>
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().
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]