X-Git-Url: https://git.draconx.ca/gitweb/gob-dx.git/blobdiff_plain/77fd2f2194af12f95959506910f3babe842c5f1f..714b58ab4606ed4d40cec3702cb378938f8c883f:/doc/gob.1.in diff --git a/doc/gob.1.in b/doc/gob.1.in index d5d817b..81aa107 100644 --- a/doc/gob.1.in +++ b/doc/gob.1.in @@ -824,6 +824,24 @@ use the full name of the method inside your code. Also note that gob does not use any C++ features, this option will just make the generated code compile with a C++ compiler. +.SH OVERRIDING THE GET_TYPE METHOD +.PP +The get_type is not really a method, but a function which initializes your +object. Recently objects appeared which require you to make a custom +get_type function (BonoboXObject currently). So in 1.0.7 it is now possible +to override this function. To do so, just define a new public method called +get_type, with no arguments. Example: +.nf + + public GtkType + get_type (void) + { + /* code goes here */ + return some_type; + } + +.fi + .SH IDENTIFIER CONFLICTS .PP Gob will need to define some local variables and functions in the generated