The problem arises when using the package gdk-x11-2.0
Test case:
$ cat test.vala
void main(string[] args)
{
Gtk.init(ref args);
var window = new Gtk.Window(0);
window.realize();
uint32 xid = Gdk.x11_drawable_get_xid(window.window);
print("The WID is %h", xid);
window.show_all();
Gtk.main();
}
$ valac test.vala --pkg gtk+-2.0 --pkg gdk-x11-2.0
x11.vapi:295.2-295.32: error: The base type `Gdk.Drawable` of struct
`X.Window` is not a struct
public struct Window : Drawable {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Compilation failed: 1 error(s), 0 warning(s)
On Tue, Jan 26, 2010 at 12:38 PM, Sandino Flores Moreno
<[email protected]> wrote:
> x11.vapi:295.2-295.32: error: The base type `Gdk.Drawable` of struct
> `X.Window` is not a struct
> public struct Window : Drawable {
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> Compilation failed: 1 error(s), 0 warning(s)
>
_______________________________________________
Vala-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/vala-list