]> git.draconx.ca Git - gob-dx.git/blobdiff - src/test.gob
Release 0.91.1
[gob-dx.git] / src / test.gob
index 1c522a6f4e2a9d0f462d51be80439ec2698a92e0..0152a00bd28c966d5a508d1812e9a41a2763dd1e 100644 (file)
@@ -1,5 +1,11 @@
 %{
 #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"
+#include "gtk-weird-button-private.h"
 
 static void jjjj(void);
 %}
@@ -13,17 +19,19 @@ class Gtk:Weird:Button from Gtk:Button {
        argument INT i set { self->i = ARG; } get { ARG = self->i; } ;
        private int j;
        public GtkWidget * h;
+       public char *bleh;
+       public double array[23][18];
 
        init(object) {
                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);
 
-               GTK_WEIRD_BUTTON(ret)->j = j;
+               GTK_WEIRD_BUTTON(ret)->_priv->j = j;
 
                return ret;
        }
@@ -46,8 +54,7 @@ class Gtk:Weird:Button from Gtk:Button {
        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) (self,wid);
+               PARENT_HANDLER(self,wid);
        }
        public int consttest(self, const gchar *text, ...)
        {
@@ -62,15 +69,21 @@ class Gtk:Weird:Button from Gtk:Button {
        signal first private NONE (NONE)
        void googlegoogle2(self)
        {
+               int array[5][8][9]={{{0}}};
                puts("TEST2");
-               testprivvirtual(self);
+               testprivvirtual(self,array);
        }
        virtual private
-       void testprivvirtual(self)
+       void testprivvirtual(self, int some_array[5][8][9])
        {
                puts("TEST3");
                googlegoogle(self);
        }
+       signal first NONE (POINTER)
+       void testarrsignal(self, long arr[8])
+       {
+               puts("TEST2");
+       }
 }
 
 %{