vala r1617 - in trunk: . gobject
- From: juergbi svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r1617 - in trunk: . gobject
- Date: Fri, 20 Jun 2008 18:38:02 +0000 (UTC)
Author: juergbi
Date: Fri Jun 20 18:38:02 2008
New Revision: 1617
URL: http://svn.gnome.org/viewvc/vala?rev=1617&view=rev
Log:
2008-06-20 JÃrg Billeter <j bitron ch>
* gobject/valaccodegeneratorsignal.vala:
Fix ref and out signal parameters
Modified:
trunk/ChangeLog
trunk/gobject/valaccodegeneratorsignal.vala
Modified: trunk/gobject/valaccodegeneratorsignal.vala
==============================================================================
--- trunk/gobject/valaccodegeneratorsignal.vala (original)
+++ trunk/gobject/valaccodegeneratorsignal.vala Fri Jun 20 18:38:02 2008
@@ -248,13 +248,15 @@
foreach (FormalParameter p in params) {
string get_value_function;
bool is_array = p.parameter_type.is_array ();
- if (is_array) {
+ if (p.direction != ParameterDirection.IN) {
+ get_value_function = "g_value_get_pointer";
+ } else if (is_array) {
if (((ArrayType) p.parameter_type).element_type.data_type == string_type.data_type) {
get_value_function = "g_value_get_boxed";
} else {
get_value_function = "g_value_get_pointer";
}
- } else if (p.parameter_type is PointerType || p.parameter_type.type_parameter != null || p.direction != ParameterDirection.IN) {
+ } else if (p.parameter_type is PointerType || p.parameter_type.type_parameter != null) {
get_value_function = "g_value_get_pointer";
} else if (p.parameter_type is ErrorType) {
get_value_function = "g_value_get_pointer";
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]