X-Git-Url: http://git.draconx.ca/gitweb/gob-dx.git/blobdiff_plain/a611f21fab136f64bbf979bd62b2fc6ecb62933c..40647d7b7b7fbeae828e0a032a3c3a5f204cdfa8:/src/test.gob diff --git a/src/test.gob b/src/test.gob index f7fbf8d..b5b180e 100644 --- a/src/test.gob +++ b/src/test.gob @@ -1,5 +1,10 @@ %{ #include +/* the next line is not mandatory, but if gob finds an include in one of + the %{ %} sections above the class definitions, it will not put it in + the file itself. So you can this way select where the include file is + at */ +#include "gtk-weird-button.h" static void jjjj(void); %} @@ -24,7 +29,7 @@ class Gtk:Weird:Button from Gtk:Button { GtkWidget *ret; ret = GTK_WIDGET (GET_NEW); - GTK_WEIRD_BUTTON(ret)->j = j; + GTK_WEIRD_BUTTON(ret)->_priv->j = j; return ret; }