[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[Vala] Problems with goocanvas bindings
- From: Andreas <tradiaz yahoo de>
- To: vala-list gnome org
- Subject: [Vala] Problems with goocanvas bindings
- Date: Sun, 23 Mar 2008 20:39:48 -0700
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);
}
}
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]