+ signal first NONE (POINTER)
+ void testarrsignal(self, long arr[8])
+ {
+ /* foo */
+ }
+
+ /* testing empty func */
+ public void foofoofoo(self) {}
+ /* testing empty func 2 */
+ public void foofoofoo2(self);
+ /* testing empty func 3 */
+ public void foofoofoo3(self) { }
+ /* testing empty func 4 */
+ public void foofoofoo4(self)
+ {
+ }
+
+// override (Gtk:Widget)
+// int event(Gtk:Widget *self (check null type),
+// GdkEvent *event (check null)) onerror FALSE
+// {
+// int ret;
+// /* some code */
+// ret = PARENT_HANDLER(self,event);
+// /* some code */
+// return ret;
+// }
+// override(Gtk:Container)
+// void
+// remove(Gtk:Container * self (check null type),
+// Gtk:Widget * wid (check null type));
+//
+// override(Gtk:Object)
+// void
+// destroy(Gtk:Object * self (check null type))
+// {
+// /* foo bar */
+// PARENT_HANDLER(self);
+// }
+
+ protected
+ int foobar(self) {
+ /* just an empty function */
+ return 5;
+ }
+
+ signal last NONE(CHAR,UCHAR,BOOLEAN,INT,UINT,LONG,ULONG,FLOAT,DOUBLE,
+ STRING,ENUM,FLAGS,BOXED,POINTER,OBJECT)
+ void
+ testargs(self, gchar a, guchar b, gboolean c, gint d, guint e, glong f,
+ gulong g, gfloat h, gdouble i, gchar * j, gint k,
+ guint l, gpointer m, gpointer o, GObject *p)
+ {
+ /* ugh, testing casting */
+ }
+
+ public signal (NO_HOOKS) last INT (INT)
+ int testflags(self, int w (check > 0)) defreturn -99 {
+ /*foo*/
+ return w;
+ }
+
+ /* testing NONE */
+ signal BOOLEAN (NONE)
+ gboolean
+ test_none_thing (self)
+ {
+ return FALSE;
+ }
+
+ /* testing types */
+ public int t1;
+ public long int t2;
+ public int long t3;
+ public int long const t4;
+ public const int long t5;
+ public const char * const t6;
+ public char const * const t7;
+ public enum _gob__enum_t const * const t8;
+ public union _gob__union_t t9;
+ public union _gob__union_t * const * const * t10;
+ public struct _gob__struct_t * const * const * t11;
+ public const struct _gob__struct_t * const * const * t13;
+ public const enum _gob__enum_t * const * const * t14;
+ public enum _gob__enum_t t15;
+ public gchar const t16;
+ public const gchar * const t17;
+ public const gchar t18;
+
+ /* testing method with no arguments */
+ public void method_with_no_arguments (void)
+ {
+ /* FOO */
+ }
+
+ /* testing calling the above method */
+ public void foo (self) {
+ self_method_with_no_arguments ();
+ }
+
+ /* this is to test custom get_type */
+ /*public GtkType
+ get_type (void)
+ {
+ static guint type = 0;
+
+ if ( ! type) {
+ static const GtkTypeInfo info = {
+ "GtkWeirdButton",
+ sizeof (GtkWeirdButton),
+ sizeof (GtkWeirdButtonClass),
+ (GtkClassInitFunc) gtk_weird_button_class_init,
+ (GtkObjectInitFunc) gtk_weird_button_init,
+ NULL,
+ NULL,
+ (GtkClassInitFunc) NULL
+ };
+
+ type = gtk_type_unique (gtk_button_get_type(), &info);
+ }
+
+ return type;
+ }*/
+
+
+ /* testing empty statements */
+ ;
+ ;
+ ;