Commit fd420ef0 authored by Jürg Billeter's avatar Jürg Billeter Committed by Jürg Billeter

Support int64 and uint64 properties in GObjects, patch by Christian

2008-07-17  Jürg Billeter  <j@bitron.ch>

	* gobject/valaccodetypesymbolbinding.vala:

	Support int64 and uint64 properties in GObjects,
	patch by Christian Hergert, fixes bug 543055

svn path=/trunk/; revision=1701
parent 1bbcb7e0
2008-07-17 Jürg Billeter <j@bitron.ch>
* gobject/valaccodetypesymbolbinding.vala:
Support int64 and uint64 properties in GObjects,
patch by Christian Hergert, fixes bug 543055
2008-07-17 Jürg Billeter <j@bitron.ch>
* vala/valainterfacewriter.vala:
......
......@@ -8,6 +8,7 @@ Andreas Brauchli
Arwed von Merkatz
Carl-Anton Ingmarsson
Cayle Graumann
Christian Hergert
Christian Meyer
Cyril Soldani
Daniel Lucraft
......
......@@ -81,6 +81,24 @@ public abstract class Vala.CCodeTypeSymbolBinding : CCodeBinding {
} else {
cspec.add_argument (new CCodeConstant ("0U"));
}
} else if (st.get_type_id () == "G_TYPE_INT64") {
cspec.call = new CCodeIdentifier ("g_param_spec_int64");
cspec.add_argument (new CCodeConstant ("G_MININT64"));
cspec.add_argument (new CCodeConstant ("G_MAXINT64"));
if (prop.default_expression != null) {
cspec.add_argument ((CCodeExpression) prop.default_expression.ccodenode);
} else {
cspec.add_argument (new CCodeConstant ("0"));
}
} else if (st.get_type_id () == "G_TYPE_UINT64") {
cspec.call = new CCodeIdentifier ("g_param_spec_uint64");
cspec.add_argument (new CCodeConstant ("0"));
cspec.add_argument (new CCodeConstant ("G_MAXUINT64"));
if (prop.default_expression != null) {
cspec.add_argument ((CCodeExpression) prop.default_expression.ccodenode);
} else {
cspec.add_argument (new CCodeConstant ("0U"));
}
} else if (st.get_type_id () == "G_TYPE_LONG") {
cspec.call = new CCodeIdentifier ("g_param_spec_long");
cspec.add_argument (new CCodeConstant ("G_MINLONG"));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment