]> git.draconx.ca Git - gob-dx.git/blobdiff - src/test.gob
Release 0.91.0
[gob-dx.git] / src / test.gob
index f7fbf8d1f7b5b7f46c9f6e1a9d7c3b02b575c639..b5b180e68e13f49f3c5386b32af5a0fb700c48f6 100644 (file)
@@ -1,5 +1,10 @@
 %{
 #include <stdio.h>
+/* 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;
        }