X-Git-Url: https://git.draconx.ca/gitweb/gob-dx.git/blobdiff_plain/4f09fcd75bb0057d90c7431f7db57ca2c5a6c028..refs/tags/v1.0.11:/doc/gob.1.in diff --git a/doc/gob.1.in b/doc/gob.1.in index 518e358..d2efcf7 100644 --- a/doc/gob.1.in +++ b/doc/gob.1.in @@ -391,7 +391,7 @@ And for getting, you would use: .nf int height; - gtk_object_set (GTK_OBJECT (object), + gtk_object_get (GTK_OBJECT (object), MY_OBJECT_GET_ARG_HEIGHT (&height), NULL); @@ -481,6 +481,19 @@ For objectlink, just a pointer is returned on get, if you wish to keep it around you should call gtk_object_ref on it. For stringlink, get makes a copy of the string which you should free after use. This is the behaviour since 1.0.2. .PP +You can also automatically export get and set methods for each of the arguments +by appending '(export)' flag before the get and set statements. For example: +.nf + + public int foo; + argument INT (type int) foo (export) + get { ARG = self->foo; } + set { self->foo = ARG; }; + +.fi +Will export public methods get_foo(self) and set_foo(self, int foo) for you +automatically. Note that this behaviour is new in 1.0.10. +.PP Methods: .PP There is a whole array of possible methods. The three normal,