]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Fix parameter position for errors in delegate wrappers
authorJürg Billeter <j@bitron.ch>
Sat, 25 Oct 2008 16:26:56 +0000 (16:26 +0000)
committerJürg Billeter <juergbi@src.gnome.org>
Sat, 25 Oct 2008 16:26:56 +0000 (16:26 +0000)
2008-10-25  Jürg Billeter  <j@bitron.ch>

* gobject/valaccodegenerator.vala:

Fix parameter position for errors in delegate wrappers

svn path=/trunk/; revision=1924

ChangeLog
gobject/valaccodegenerator.vala

index 58c913783702e5227cdd19e9b4cea58ba335cb87..ff504db6d9c0d640087a9b0eaa5d8ef6a799e735 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-10-25  Jürg Billeter  <j@bitron.ch>
+
+       * gobject/valaccodegenerator.vala:
+
+       Fix parameter position for errors in delegate wrappers
+
 2008-10-25  Jürg Billeter  <j@bitron.ch>
 
        * gobject/valaccodegenerator.vala:
index ad1774dc84df4ca6897ab3183ed5a2f5442061ef..fa99eed6dc7e811d460f65885acc778f423f79fc 100644 (file)
@@ -3925,7 +3925,7 @@ public class Vala.CCodeGenerator : CodeGenerator {
 
                if (m.get_error_types ().size > 0) {
                        var cparam = new CCodeFormalParameter ("error", "GError**");
-                       cparam_map.set (get_param_pos (-1), cparam);
+                       cparam_map.set (get_param_pos (-2), cparam);
                }
 
                // append C parameters in the right order