zeitgeist team mailing list archive
-
zeitgeist team
-
Mailing list archive
-
Message #04816
[Branch ~zeitgeist/zeitgeist/bluebird] Rev 399: Make FTS work with older GLib
------------------------------------------------------------
revno: 399
committer: Michal Hruby <michal.mhr@xxxxxxxxx>
branch nick: bluebird
timestamp: Mon 2012-02-13 01:15:54 +0100
message:
Make FTS work with older GLib
modified:
extensions/fts++/indexer.cpp
--
lp:zeitgeist
https://code.launchpad.net/~zeitgeist/zeitgeist/bluebird
Your team Zeitgeist Framework Team is subscribed to branch lp:zeitgeist.
To unsubscribe from this branch go to https://code.launchpad.net/~zeitgeist/zeitgeist/bluebird/+edit-subscription
=== modified file 'extensions/fts++/indexer.cpp'
--- extensions/fts++/indexer.cpp 2012-02-10 17:03:50 +0000
+++ extensions/fts++/indexer.cpp 2012-02-13 00:15:54 +0000
@@ -636,6 +636,7 @@
tokenizer->index_text (display_name, name_weight, "A");
}
+#if GLIB_CHECK_VERSION(2, 30, 0)
val = g_desktop_app_info_get_generic_name (dai);
if (val && val[0] != '\0')
{
@@ -648,7 +649,7 @@
tokenizer->index_text (generic_name_folded, name_weight);
tokenizer->index_text (generic_name_folded, name_weight, "A");
}
-
+#endif
if (!is_subject) return true;
// the rest of the code only applies to events with application subject uris:
// index the comment field, add category terms, index keywords
@@ -660,7 +661,7 @@
tokenizer->index_text (comment, comment_weight);
tokenizer->index_text (comment, comment_weight, "A");
}
-
+#if GLIB_CHECK_VERSION(2, 30, 0)
val = g_desktop_app_info_get_categories (dai);
if (val && val[0] != '\0')
{
@@ -676,7 +677,7 @@
}
g_strfreev (categories);
}
-
+#endif
return true;
}