Permalink
Browse files

Fix transfer mode of returned pointers

  • Loading branch information...
1 parent 2724a1a commit 576186ca13b8d5e113d3b93f4b13e873d4a584f3 @blaztinn committed Oct 16, 2011
Showing with 8 additions and 2 deletions.
  1. +3 −0 gir/.gitignore
  2. +5 −2 gir/generate.vala
View
@@ -3,6 +3,9 @@ gl.tm
enum.spec
enumext.spec
+generate
+generate.c
+gl.h
GL-1.0.typelib
GL-1.0.gir
View
@@ -672,14 +672,17 @@ class Parse {
comment_args_str += comment_arg_str + "\n";
}
+ var transfer = " * Returns: (transfer full):\n";
+
//gtk-doc coment
content += ("/**\n" +
" * %s:\n" +
"%s" +
- " * Returns: (transfer none):\n" +
+ "%s" +
"*/\n").printf(
mangle_function(function.name),
- comment_args_str);
+ comment_args_str,
+ transfer);
//function declaration
if(args_str.length > 0) {

0 comments on commit 576186c

Please sign in to comment.