X-Git-Url: http://git.draconx.ca/gitweb/gob-dx.git/blobdiff_plain/3e833eea9cb9822f04c639e143212c4b6f7940d4..c2cc7db1ccde3eb2ff723c4b7b213a055f56e8ae:/src/test.gob diff --git a/src/test.gob b/src/test.gob index be742ef..9c981eb 100644 --- a/src/test.gob +++ b/src/test.gob @@ -3,12 +3,21 @@ look in here to see a whole array of different syntax options, but don't expect this to be an easy to read file */ -requires 2.0.16 +requires 2.0.18 + +%ct{ + /* very very top of C file useful for "config.h" sort of like alltop + * but only for C file */ +%} %at{ /* ALL TOP */ %} +%ctop{ + /* Just like ct above */ +%} + %headertop{ /* this should go on the very top of the header */ @@ -159,7 +168,9 @@ class Test:Object from /*G:Object*/ Gtk:Container private char a_property; property CHAR a_property - (nick = _("Nick"), + ( + name="a-property", + nick = _("Nick"), blurb = _("Blurb"), minimum = 'a', maximum = 'Z', @@ -248,7 +259,9 @@ class Test:Object from /*G:Object*/ Gtk:Container init(object) { object->i=0; } - class_init(klass); + class_init(klass) { + /*IN CLASS INIT */ + } /** * new: @@ -283,7 +296,7 @@ class Test:Object from /*G:Object*/ Gtk:Container * * Returns: new object **/ - signal last STRING (POINTER, INT) + signal last STRING "bleh-signal" (POINTER, INT) char * bleh(self, G:Object * wid (check null type), int h (check > 0)) { return self_blah(self,wid,h) > 0 ? g_strdup ("foo") : g_strdup ("bar");