2006-11-02 Jürg Billeter <j@bitron.ch>
* vapigen/valagidlparser.vala: don't ignore Gtk.Allocation, set cname
of methods
* packages/gtk+-2.0/gtk+-2.0-custom.vala: add Gtk.Allocation struct
svn path=/trunk/; revision=165
+2006-11-02 Jürg Billeter <j@bitron.ch>
+
+ * vapigen/valagidlparser.vala: don't ignore Gtk.Allocation, set cname
+ of methods
+ * packages/gtk+-2.0/gtk+-2.0-custom.vala: add Gtk.Allocation struct
+
2006-10-27 Jürg Billeter <j@bitron.ch>
* gidlgen/gapi2xml.pl: detect some array types in return types
public void init (out string[] args);
public void main ();
public void main_quit ();
+
+ public struct Allocation {
+ public int x;
+ public int y;
+ public int width;
+ public int height;
+ }
}
} else if (n.has_prefix ("Gtk")) {
type.namespace_name = "Gtk";
type.type_name = n.offset ("Gtk".len ());
- if (type.type_name == "Allocation" || type.type_name == "TextLayout") {
+ if (type.type_name == "TextLayout") {
type.namespace_name = null;
type.type_name = "pointer";
}
}
}
+ m.set_cname (f.symbol);
+
bool first = true;
foreach (IdlNodeParam param in f.parameters) {
var param_node = (IdlNode) param;