using Gdk and X11 packages results in a compilation error:
x11.vapi:295.2-295.32: error: The base type `Gdk.Drawable` of struct
`X.Window` is not a struct
public struct Window : Drawable {
x11.vapi:284.27-284.28: error: The type name `ID' could not be found
public struct Drawable : ID
patch is attached. But probably Vala should priorize the name resolution
if the type is defined inside the same namespace (this solution will be
better, but will require a patch in vala compiler)
This is only broken in git. 0.7.9 is ok
--pancake
--- prg/vala/vapi/x11.vapi 2009-11-17 11:35:42.000000000 +0100
+++ /usr/share/vala/vapi/x11.vapi 2010-01-19 13:38:25.000000000 +0100
@@ -281,7 +281,7 @@
get_value_function = "g_value_get_int",
set_value_function = "g_value_set_int", default_value = "0",
type_signature = "i")]
- public struct Drawable : ID
+ public struct Drawable : X.ID
{
}
@@ -292,7 +292,7 @@
get_value_function = "g_value_get_int",
set_value_function = "g_value_set_int", default_value = "0",
type_signature = "i")]
- public struct Window : Drawable {
+ public struct Window : X.Drawable {
}
_______________________________________________
Vala-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/vala-list