[glib] Add a pointer to G_DEFINE_INTERFACE



commit de6914a46a0af720de3df34539e61973e9d4446b
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Feb 21 15:32:08 2010 -0500

    Add a pointer to G_DEFINE_INTERFACE

 docs/reference/gobject/tut_gtype.xml |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/docs/reference/gobject/tut_gtype.xml b/docs/reference/gobject/tut_gtype.xml
index 96f6123..15d6242 100644
--- a/docs/reference/gobject/tut_gtype.xml
+++ b/docs/reference/gobject/tut_gtype.xml
@@ -770,6 +770,13 @@ struct _GInterfaceInfo
 };
 </programlisting>
         </para>
+        <para>
+        When having no special requirements you also can use the <function>G_DEFINE_INTERFACE</function> macro:
+<programlisting>
+G_DEFINE_INTERFACE (MamanBaz, maman_baz, G_TYPE_OBJECT)
+</programlisting>
+        </para>
+
 
         <sect2 id="gtype-non-instantiable-classed-init">
           <title>Interface Initialization</title>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]