[vala] GAsync: Add gio.h include in header for public async methods
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [vala] GAsync: Add gio.h include in header for public async methods
- Date: Mon, 7 Sep 2009 19:58:30 +0000 (UTC)
commit 9897b157a8fbfbff535862695fa3c0919fee6783
Author: Didier 'Ptitjes <ptitjes free fr>
Date: Fri Jul 17 10:45:07 2009 +0200
GAsync: Add gio.h include in header for public async methods
Signed-off-by: Didier 'Ptitjes <ptitjes free fr>
codegen/valagasyncmodule.vala | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/codegen/valagasyncmodule.vala b/codegen/valagasyncmodule.vala
index a33635f..22a81ac 100644
--- a/codegen/valagasyncmodule.vala
+++ b/codegen/valagasyncmodule.vala
@@ -194,6 +194,9 @@ internal class Vala.GAsyncModule : GSignalModule {
public override void visit_method (Method m) {
if (m.coroutine) {
source_declarations.add_include ("gio/gio.h");
+ if (!m.is_internal_symbol ()) {
+ header_declarations.add_include ("gio/gio.h");
+ }
// append the synchronous version
m.coroutine = false;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]