[vala] gidlparser: Make sure to only handle the needed cairo symbols
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] gidlparser: Make sure to only handle the needed cairo symbols
- Date: Wed, 27 Jul 2016 13:28:45 +0000 (UTC)
commit 52f3661edd7a3886495309b1c8cd49be42f7091d
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Wed Jul 27 15:15:38 2016 +0200
gidlparser: Make sure to only handle the needed cairo symbols
vapigen/valagidlparser.vala | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/vapigen/valagidlparser.vala b/vapigen/valagidlparser.vala
index 0cb51c2..380fb0a 100644
--- a/vapigen/valagidlparser.vala
+++ b/vapigen/valagidlparser.vala
@@ -1896,7 +1896,8 @@ public class Vala.GIdlParser : CodeVisitor {
type.unresolved_symbol = new UnresolvedSymbol (new UnresolvedSymbol (null, "GLib"),
"HashTable");
} else if (type_node.tag == TypeTag.ERROR) {
type.unresolved_symbol = new UnresolvedSymbol (new UnresolvedSymbol (null, "GLib"),
"Error");
- } else if (type_node.unparsed.has_prefix ("cairo_")) {
+ } else if (type_node.unparsed.has_prefix ("cairo_device_t") || type_node.unparsed.has_prefix
("cairo_pattern_t") ||
+ type_node.unparsed.has_prefix ("cairo_surface_t")) {
if (type_node.unparsed.has_prefix ("cairo_device_t")) {
type.unresolved_symbol = new UnresolvedSymbol (new UnresolvedSymbol (null,
"Cairo"), "Device");
} else if (type_node.unparsed.has_prefix ("cairo_pattern_t")) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]