From: Rico Tzschichholz Date: Wed, 27 Jul 2016 13:15:38 +0000 (+0200) Subject: gidlparser: Make sure to only handle the needed cairo symbols X-Git-Tag: 0.33.1~19 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=52f3661edd7a3886495309b1c8cd49be42f7091d;p=thirdparty%2Fvala.git gidlparser: Make sure to only handle the needed cairo symbols --- diff --git a/vapigen/valagidlparser.vala b/vapigen/valagidlparser.vala index 0cb51c28c..380fb0aeb 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")) {