diff options
| author | Seif Lotfy <seif@lotfy.com> | 2012-09-03 00:52:39 +0200 |
|---|---|---|
| committer | Seif Lotfy <seif@lotfy.com> | 2012-09-03 00:52:39 +0200 |
| commit | a79ae48ccf34dc4e38fada322e895328e8b23343 (patch) | |
| tree | c3913934b5a7edc00db5db4856b7ecfea1304739 | |
| parent | 8bae03fb691ce5e5998e37100d4d32ae74bccbe3 (diff) | |
| download | zeitgeist-a79ae48ccf34dc4e38fada322e895328e8b23343.tar.gz | |
Seriously fix ontology.vala.in
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | libzeitgeist/ontology.vala.in | 6 |
2 files changed, 6 insertions, 1 deletions
@@ -76,6 +76,7 @@ examples/most-recent-events examples/data-source-stuff libzeitgeist/libzeitgeist-2.0.pc libzeitgeist/zeitgeist-2.0.pc +libzeitgeist/ontology.vala gtk-doc.make doc/libzeitgeist/zeitgeist-2.0-*.txt doc/libzeitgeist/zeitgeist-2.0.types diff --git a/libzeitgeist/ontology.vala.in b/libzeitgeist/ontology.vala.in index f8250cc8..20a85a4a 100644 --- a/libzeitgeist/ontology.vala.in +++ b/libzeitgeist/ontology.vala.in @@ -61,7 +61,7 @@ namespace Zeitgeist results.append (uri); // Recursively get the other parents foreach (string parent_uri in get_all_parents (uri)) - if (results.index (parent_uri) > -1) + if (results.index (parent_uri) == -1) results.append (parent_uri); } @@ -113,6 +113,10 @@ namespace Zeitgeist { initialize_symbols (); + var symbol = all_symbols.lookup (symbol_uri); + if (symbol == null) return false; + if (parent_uri == symbol_uri) return true; + foreach (unowned string uri in get_all_parents (symbol_uri)) if (parent_uri == uri) return true; |
