[vala] GAsync: Fix missing gio.h include for virtual async methods
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [vala] GAsync: Fix missing gio.h include for virtual async methods
- Date: Wed, 16 Sep 2009 17:23:02 +0000 (UTC)
commit a1a55dc5a14fbb3f5f284dd071ee4e2d002069c0
Author: Jürg Billeter <j bitron ch>
Date: Wed Sep 16 19:22:01 2009 +0200
GAsync: Fix missing gio.h include for virtual async methods
codegen/valagasyncmodule.vala | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/codegen/valagasyncmodule.vala b/codegen/valagasyncmodule.vala
index 1c33906..c8cc8fd 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<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"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]