]> git.draconx.ca Git - gob-dx.git/blobdiff - doc/gob2.1.in
Add support for simple dynamic types.
[gob-dx.git] / doc / gob2.1.in
index f39238425c2a56365db1c86cc8bf0018226cb74d..9037aa2673b985c5b81023e6474644cca7a0017c 100644 (file)
@@ -238,6 +238,17 @@ For example:
 To make an abstract class (to pass G_TYPE_FLAG_ABSTRACT) add \'(abstract)\'
 before the curly braces above.  This works since version 2.0.13.
 
+.PP
+To make a simple dynamic class which can be registered with a GTypeModule,
+add \`(dynamic)\' to the class header.
+This will cause a type registration method to be defined, which you would
+normally call from the load method of a GTypeModule.
+In the above example, the registration function will look like
+.nf
+
+  void gtk_new_button_register_type(GTypeModule *type_module)
+
+.fi
 .SH DATA MEMBERS
 .PP
 There are five types of data members.  Three of them are normal data members,