vala r1129 - in trunk: . gobject



Author: juergbi
Date: Sat Mar 15 21:54:22 2008
New Revision: 1129
URL: http://svn.gnome.org/viewvc/vala?rev=1129&view=rev

Log:
2008-03-15  Juerg Billeter  <j bitron ch>

	* gobject/valaccodegeneratorinvocationexpression.vala: fix support
	  for array return types for D-Bus method calls


Modified:
   trunk/ChangeLog
   trunk/gobject/valaccodegeneratorinvocationexpression.vala

Modified: trunk/gobject/valaccodegeneratorinvocationexpression.vala
==============================================================================
--- trunk/gobject/valaccodegeneratorinvocationexpression.vala	(original)
+++ trunk/gobject/valaccodegeneratorinvocationexpression.vala	Sat Mar 15 21:54:22 2008
@@ -194,7 +194,7 @@
 				carg_map.set (get_param_pos (0.2), new CCodeIdentifier (cb_fun.name));
 				carg_map.set (get_param_pos (0.3), new CCodeConstant ("self"));
 				carg_map.set (get_param_pos (0.4), new CCodeConstant ("NULL"));
-			} else if (found_out || m.return_type.data_type != null) {
+			} else if (found_out || !(m.return_type is VoidType)) {
 				ccall.call = new CCodeIdentifier ("dbus_g_proxy_call");
 
 				// method can fail



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]