[vala/0.34] codegen: Cast destroy_data for g_cclosure_new to GClosureNotify



commit 1063c7feb759725f8e7cf75f647bd3e7c812630e
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Tue Feb 28 11:36:30 2017 +0100

    codegen: Cast destroy_data for g_cclosure_new to GClosureNotify

 codegen/valaccodemethodcallmodule.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/codegen/valaccodemethodcallmodule.vala b/codegen/valaccodemethodcallmodule.vala
index 8e923ea..549114c 100644
--- a/codegen/valaccodemethodcallmodule.vala
+++ b/codegen/valaccodemethodcallmodule.vala
@@ -366,7 +366,7 @@ public class Vala.CCodeMethodCallModule : CCodeAssignmentModule {
                                                                        var closure_new = new 
CCodeFunctionCall (new CCodeIdentifier ("g_cclosure_new"));
                                                                        closure_new.add_argument (new 
CCodeCastExpression (cexpr, "GCallback"));
                                                                        closure_new.add_argument 
(delegate_target);
-                                                                       closure_new.add_argument 
(delegate_target_destroy_notify);
+                                                                       closure_new.add_argument (new 
CCodeCastExpression (delegate_target_destroy_notify, "GClosureNotify"));
                                                                        cexpr = new 
CCodeConditionalExpression (new CCodeBinaryExpression (CCodeBinaryOperator.EQUALITY, cexpr, new 
CCodeIdentifier ("NULL")), new CCodeIdentifier ("NULL"), closure_new);
                                                                } else {
                                                                        carg_map.set (get_param_pos 
(get_ccode_delegate_target_pos (param)), delegate_target);


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