2008-01-19 Jürg Billeter <j@bitron.ch>
+ * vapigen/valagidlparser.vala: add support for common_prefix
+ attribute to override prefix of enum values
+
+ * vapi/packages/gdk-2.0/: fix GdkWindowClass binding,
+ fixes bug 509967
+
+ * vapi/gdk-2.0.vapi: regenerated
+
+2008-01-19 Jürg Billeter <j@bitron.ch>
+
* vapi/packages/gtksourceview-2.0/: update to gtksourceview 2.1.0
* vapi/gtksourceview-2.0.vapi: regenerated
TRUE_COLOR,
DIRECT_COLOR,
}
- [CCode (cprefix = "GDK_INPUT_", cheader_filename = "gdk/gdk.h")]
+ [CCode (cprefix = "GDK_", cheader_filename = "gdk/gdk.h")]
public enum WindowClass {
- OUTPUT,
- ONLY,
+ INPUT_OUTPUT,
+ INPUT_ONLY,
}
[CCode (cprefix = "GDK_WINDOW_EDGE_", cheader_filename = "gdk/gdk.h")]
public enum WindowEdge {
gdk_screen_get_monitor_geometry.dest is_out="1"
gdk_window_get_frame_extents.rect is_out="1"
GdkWindowAttr is_value_type="1"
+GdkWindowClass common_prefix="GDK_"
GdkWindowObject hidden="1"
GdkWindowObjectClass hidden="1"
common_prefix = common_prefix.ndup (common_prefix.size () - 1);
}
}
-
+
+ var en_attributes = get_attributes (node.name);
+ if (en_attributes != null) {
+ foreach (string attr in en_attributes) {
+ var nv = attr.split ("=", 2);
+ if (nv[0] == "common_prefix") {
+ common_prefix = eval (nv[1]);
+ }
+ }
+ }
+
en.set_cprefix (common_prefix);
foreach (weak IdlNode value2 in en_node.values) {