2008-05-08 Juerg Billeter <j@bitron.ch>
* gobject/valaccodegeneratorsignal.vala:
Fix string return type for marshallers,
patch by Yu Feng, fixes bug 531137
svn path=/trunk/; revision=1348
2008-05-08 Jürg Billeter <j@bitron.ch>
+ * gobject/valaccodegeneratorsignal.vala:
+
+ Fix string return type for marshallers,
+ patch by Yu Feng, fixes bug 531137
+
+2008-05-08 Jürg Billeter <j@bitron.ch>
+
* gobject/valaccodeclassbinding.vala:
Support properties in D-Bus services,
set_fc = new CCodeFunctionCall (new CCodeIdentifier ("g_value_set_pointer"));
} else if (return_type is ErrorType) {
set_fc = new CCodeFunctionCall (new CCodeIdentifier ("g_value_set_pointer"));
- } else if (return_type.data_type is Class || return_type.data_type is Interface) {
- set_fc = new CCodeFunctionCall (new CCodeIdentifier ("g_value_take_object"));
} else if (return_type.data_type == string_type.data_type) {
set_fc = new CCodeFunctionCall (new CCodeIdentifier ("g_value_take_string"));
+ } else if (return_type.data_type is Class || return_type.data_type is Interface) {
+ set_fc = new CCodeFunctionCall (new CCodeIdentifier ("g_value_take_object"));
} else {
set_fc = new CCodeFunctionCall (new CCodeIdentifier (return_type.data_type.get_set_value_function ()));
}