Hello,
I'm new to vala and just tried out goocanvas.
However the bindings or vala seem to behave weird.
That's the output of my c compiler:
valac app.vala mainwindow.vala table.vala --pkg=goocanvas --pkg=gtk+-2.0
--pkg=glib-2.0 -o critago
table.c: In function ‘critago_table_constructor’:
table.c:52: warning: assignment from incompatible pointer type
And that is the application's output:
(critago:13679): GLib-GObject-WARNING **: IA__g_object_set_valist:
object class `GooCanvasRect' has no property named `\u0003'
(critago:13679): GLib-GObject-WARNING **: gtype.c:2524: invalid class
pointer `0x81b59d8'
I have attached the source.
Any idea what I'm doing wrong here?
Andreas
using GLib;
using Gtk;
using Goo;
public class Critago.Table : Canvas
{
CanvasItem root;
CanvasRect button;
construct
{
var req = new Requisition ();
req.width = 800;
req.height = 600;
size_request (req);
set_bounds (0, 0, 800, 600);
root = get_root_item ();
button = new CanvasRect (root, 0, 0, 80, 80);
}
}
_______________________________________________
Vala-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/vala-list