From: Raffaele Sandrini Date: Sun, 27 Jan 2008 12:19:58 +0000 (+0000) Subject: fix regression introduced with libgee regarding marshaller generation X-Git-Tag: VALA_0_1_7~179 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eec4bdd5972fc954ebe8ce9b04ddf41b472a6383;p=platform%2Fupstream%2Fvala.git fix regression introduced with libgee regarding marshaller generation 2008-01-27 Raffaele Sandrini * gobject/valaccodegeneratorsignal.vala: fix regression introduced with libgee regarding marshaller generation svn path=/trunk/; revision=912 --- diff --git a/ChangeLog b/ChangeLog index dc5a723..97c3b66 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-01-27 Raffaele Sandrini + + * gobject/valaccodegeneratorsignal.vala: fix regression introduced + with libgee regarding marshaller generation + 2008-01-27 Jürg Billeter * vapi/glib-2.0.vapi: complete GList and GSList bindings diff --git a/gobject/valaccodegeneratorsignal.vala b/gobject/valaccodegeneratorsignal.vala index d9a9772..6b5e95d 100644 --- a/gobject/valaccodegeneratorsignal.vala +++ b/gobject/valaccodegeneratorsignal.vala @@ -49,7 +49,7 @@ public class Vala.CCodeGenerator { ret = "%s_%s_".printf (prefix, get_marshaller_type_name (sig.return_type)); - if (params == null) { + if (params == null || params.size == 0) { ret = ret + "_VOID"; } else { foreach (FormalParameter p in params) { @@ -85,7 +85,7 @@ public class Vala.CCodeGenerator { var params = sig.get_parameters (); signature = "%s:".printf (get_marshaller_type_name (sig.return_type)); - if (params == null) { + if (params == null || params.size == 0) { signature = signature + "VOID"; } else { bool first = true;