Add a pointer to G_DEFINE_INTERFACE
authorMatthias Clasen <mclasen@redhat.com>
Sun, 21 Feb 2010 20:32:08 +0000 (15:32 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 21 Feb 2010 20:32:08 +0000 (15:32 -0500)
docs/reference/gobject/tut_gtype.xml

index 96f6123..15d6242 100644 (file)
@@ -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>