]> git.draconx.ca Git - gob-dx.git/blobdiff - doc/gob.1.in
Release 1.0.12
[gob-dx.git] / doc / gob.1.in
index 518e358d4fd20ef6f243d5e37e0eaa69987a409b..644be0bcda76821b45ba5f5f0545dbaec99f9176 100644 (file)
@@ -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,
@@ -669,6 +682,10 @@ signal "changed" to a function "foo", you would do:
 
 .fi
 .PP
+Note that if you are compiling with GTK+2, this will not work.  You must 
+only use this with gtk_signal_connect_full.  Also the above macros don't
+exist in gob2, where typesafe signals are handled another way.
+.PP
 Override methods:
 .PP
 If you need to override some method (a signal or a virtual method