]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
GAsync: Fix missing gio.h include for virtual async methods
authorJürg Billeter <j@bitron.ch>
Wed, 16 Sep 2009 17:22:01 +0000 (19:22 +0200)
committerJürg Billeter <j@bitron.ch>
Wed, 16 Sep 2009 17:22:01 +0000 (19:22 +0200)
codegen/valagasyncmodule.vala

index 1c33906262c18d5f9f387fdf6392dd7db72ffda4..c8cc8fda6a602de5fab4b5788a88c43883c741b7 100644 (file)
@@ -520,6 +520,8 @@ internal class Vala.GAsyncModule : GSignalModule {
 
        public override void generate_cparameters (Method m, CCodeDeclarationSpace decl_space, Map<int,CCodeFormalParameter> cparam_map, CCodeFunction func, CCodeFunctionDeclarator? vdeclarator = null, Map<int,CCodeExpression>? carg_map = null, CCodeFunctionCall? vcall = null, int direction = 3) {
                if (m.coroutine) {
+                       decl_space.add_include ("gio/gio.h");
+
                        if (direction == 1) {
                                cparam_map.set (get_param_pos (-1), new CCodeFormalParameter ("callback", "GAsyncReadyCallback"));
                                cparam_map.set (get_param_pos (-0.9), new CCodeFormalParameter ("user_data", "gpointer"));