X-Git-Url: https://git.draconx.ca/gitweb/gob-dx.git/blobdiff_plain/b9f22ab5a7f4d4bfe0932debf8864a21b5c852cd..2310330e7d4d724bf6641339836be8523f95c916:/src/test.gob diff --git a/src/test.gob b/src/test.gob index ae1ce1d..5dd5c2e 100644 --- a/src/test.gob +++ b/src/test.gob @@ -10,7 +10,7 @@ void bubu(void); class Gtk:Weird:Button from Gtk:Button { public int i; - argument INT i set { this->i = ARG; } get { ARG = this->i; } ; + argument INT i set { self->i = ARG; } get { ARG = self->i; } ; private int j; public GtkWidget * h; @@ -18,7 +18,7 @@ class Gtk:Weird:Button from Gtk:Button { GtkWeirdButton *but = GTK_WEIRD_BUTTON(object); but->i=0; } - class_init(class); + class_init(klass); public GtkWidget * new(int j (check > 0)) { GtkWidget *ret; ret = GTK_WIDGET (GET_NEW); @@ -27,27 +27,49 @@ class Gtk:Weird:Button from Gtk:Button { return ret; } - private int blah(this, Gtk:Widget * wid (check null type), + private int blah(self, Gtk:Widget * wid (check null type), int h (check > 0)) onerror -1 { - gtk_container_add(GTK_CONTAINER(this),wid); + gtk_container_add(GTK_CONTAINER(self),wid); return h; } signal last INT (POINTER, INT) - int bleh(this, Gtk:Widget * wid (check null type), + int bleh(self, Gtk:Widget * wid (check null type), int h (check > 0)) { - return blah(this,wid,h); + return blah(self,wid,h); } signal first NONE (NONE) - void bloh(this); - virtual void * bah(this, int h (check > 0)) onerror NULL { - beh(this,h); + void bloh(self); + virtual void * bah(self, int h (check > 0)) onerror NULL { + beh(self,h); return NULL; } - virtual int beh(this, int h (check > 0)); - override(Gtk:Container) void add(Gtk:Container * this (check null type), + virtual int beh(self, int h (check > 0)); + override(Gtk:Container) void add(Gtk:Container * self (check null type), Gtk:Widget * wid (check null type)) { if (GTK_CONTAINER_CLASS (parent_class)->add) - (* GTK_CONTAINER_CLASS (parent_class)->add) (this,wid); + (* GTK_CONTAINER_CLASS (parent_class)->add) (self,wid); + } + public int consttest(self, const gchar *text, ...) + { + return 25; + } + signal private first NONE (NONE) + void googlegoogle(self) + { + puts("TEST1"); + googlegoogle2(self); + } + signal first private NONE (NONE) + void googlegoogle2(self) + { + puts("TEST2"); + testprivvirtual(self); + } + virtual private + void testprivvirtual(self) + { + puts("TEST3"); + googlegoogle(self); } }