projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ecb45f4
)
Add a pointer to G_DEFINE_INTERFACE
author
Matthias Clasen
<mclasen@redhat.com>
Sun, 21 Feb 2010 20:32:08 +0000
(15:32 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Sun, 21 Feb 2010 20:32:08 +0000
(15:32 -0500)
docs/reference/gobject/tut_gtype.xml
patch
|
blob
|
history
diff --git
a/docs/reference/gobject/tut_gtype.xml
b/docs/reference/gobject/tut_gtype.xml
index
96f6123
..
15d6242
100644
(file)
--- 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>