summaryrefslogtreecommitdiff
path: root/extensions/fts++
diff options
context:
space:
mode:
authorMichal Hruby <michal.mhr@gmail.com>2012-02-13 01:15:54 +0100
committerMichal Hruby <michal.mhr@gmail.com>2012-02-13 01:15:54 +0100
commit0ae8849b62a2adbf62a9127dbcd3fdb04baac5d6 (patch)
treed01e4f687d3d1350952d71886b4dff6243482e71 /extensions/fts++
parent08573378be28909c6bb036be8b9e28b48d06408a (diff)
downloadzeitgeist-0ae8849b62a2adbf62a9127dbcd3fdb04baac5d6.tar.gz
Make FTS work with older GLib
Diffstat (limited to 'extensions/fts++')
-rw-r--r--extensions/fts++/indexer.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/extensions/fts++/indexer.cpp b/extensions/fts++/indexer.cpp
index 8b355548..8b16d52b 100644
--- a/extensions/fts++/indexer.cpp
+++ b/extensions/fts++/indexer.cpp
@@ -636,6 +636,7 @@ bool Indexer::IndexActor (std::string const& actor, bool is_subject)
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 @@ bool Indexer::IndexActor (std::string const& actor, bool is_subject)
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 @@ bool Indexer::IndexActor (std::string const& actor, bool is_subject)
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 @@ bool Indexer::IndexActor (std::string const& actor, bool is_subject)
}
g_strfreev (categories);
}
-
+#endif
return true;
}