Commit 154b24c0 authored by Philip Withnall's avatar Philip Withnall

gtype: Document type for iface_default_init() function

And mention why it’s not a GInterfaceInitFunc as people who have read
the GObject docs cover-to-cover might expect.
Signed-off-by: Philip Withnall's avatarPhilip Withnall <>
parent db0bce02
......@@ -1753,6 +1753,12 @@ guint g_type_get_type_registration_serial (void);
* name `t_n ## _default_init`, and the interface structure to have the
* name `TN ## Interface`.
* The initialization function has signature
* `static void t_n ## _default_init (TypeName##Interface *klass);`, rather than
* the full #GInterfaceInitFunc signature, for brevity and convenience. If you
* need to use an initialization function with an `iface_data` argument, you
* must write the #GTypeInterface definitions manually.
* Since: 2.24
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment