summaryrefslogtreecommitdiff
path: root/extensions/fts++
diff options
context:
space:
mode:
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;
}