zeitgeist team mailing list archive
-
zeitgeist team
-
Mailing list archive
-
Message #04065
[Branch ~zeitgeist/zeitgeist/bluebird] Rev 241: Use find_custom instead of index, this will actually work with strings
------------------------------------------------------------
revno: 241
committer: Michal Hruby <michal.mhr@xxxxxxxxx>
branch nick: bluebird
timestamp: Thu 2011-09-15 15:07:53 +0200
message:
Use find_custom instead of index, this will actually work with strings
modified:
src/datamodel.vala
--
lp:~zeitgeist/zeitgeist/bluebird
https://code.launchpad.net/~zeitgeist/zeitgeist/bluebird
Your team Zeitgeist Framework Team is subscribed to branch lp:~zeitgeist/zeitgeist/bluebird.
To unsubscribe from this branch go to https://code.launchpad.net/~zeitgeist/zeitgeist/bluebird/+edit-subscription
=== modified file 'src/datamodel.vala'
--- src/datamodel.vala 2011-09-14 18:37:44 +0000
+++ src/datamodel.vala 2011-09-15 13:07:53 +0000
@@ -269,9 +269,8 @@
{
matches = true;
}
- // FIXME: this won't work!
else if (is_symbol &&
- Symbol.get_all_parents (property).index (parsed) > -1)
+ Symbol.get_all_parents (property).find_custom (parsed, strcmp) != null)
{
matches = true;
}