From: Jürg Billeter Date: Wed, 16 Sep 2009 17:22:01 +0000 (+0200) Subject: GAsync: Fix missing gio.h include for virtual async methods X-Git-Tag: 0.7.6~28 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a1a55dc5a14fbb3f5f284dd071ee4e2d002069c0;p=thirdparty%2Fvala.git GAsync: Fix missing gio.h include for virtual async methods --- diff --git a/codegen/valagasyncmodule.vala b/codegen/valagasyncmodule.vala index 1c3390626..c8cc8fda6 100644 --- a/codegen/valagasyncmodule.vala +++ b/codegen/valagasyncmodule.vala @@ -520,6 +520,8 @@ internal class Vala.GAsyncModule : GSignalModule { public override void generate_cparameters (Method m, CCodeDeclarationSpace decl_space, Map cparam_map, CCodeFunction func, CCodeFunctionDeclarator? vdeclarator = null, Map? 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"));