]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gidlparser: Make sure to only handle the needed cairo symbols
authorRico Tzschichholz <ricotz@ubuntu.com>
Wed, 27 Jul 2016 13:15:38 +0000 (15:15 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Wed, 27 Jul 2016 13:15:38 +0000 (15:15 +0200)
vapigen/valagidlparser.vala

index 0cb51c28c407a906c557651d0575b7b98edada64..380fb0aeb4fb23058ab831b7e4d27feb2b8974fa 100644 (file)
@@ -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")) {