vala r2001 - in trunk: . gobject
- From: juergbi svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r2001 - in trunk: . gobject
- Date: Fri, 7 Nov 2008 10:37:50 +0000 (UTC)
Author: juergbi
Date: Fri Nov 7 10:37:50 2008
New Revision: 2001
URL: http://svn.gnome.org/viewvc/vala?rev=2001&view=rev
Log:
2008-11-07 JÃrg Billeter <j bitron ch>
* gobject/valadbusclientmodule.vala:
Fix D-Bus methods with out parameters but no return value
Modified:
trunk/ChangeLog
trunk/gobject/valadbusclientmodule.vala
Modified: trunk/gobject/valadbusclientmodule.vala
==============================================================================
--- trunk/gobject/valadbusclientmodule.vala (original)
+++ trunk/gobject/valadbusclientmodule.vala Fri Nov 7 10:37:50 2008
@@ -435,6 +435,10 @@
block.add_statement (new CCodeReturnStatement (new CCodeIdentifier ("result")));
}
} else {
+ if (found_out) {
+ ccall.add_argument (new CCodeIdentifier ("G_TYPE_INVALID"));
+ }
+
block.add_statement (new CCodeExpressionStatement (ccall));
// don't access result when error occured
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]