[nautilus/gnome-3-6] search-engine-simple: use g_content_type_is_a()
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/gnome-3-6] search-engine-simple: use g_content_type_is_a()
- Date: Mon, 12 Nov 2012 21:25:12 +0000 (UTC)
commit ed8a7cbf05c9abd52fd71346f4dede8c1b64b858
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Mon Nov 12 16:19:52 2012 -0500
search-engine-simple: use g_content_type_is_a()
Make it consistent with the model engine - the mimetypes don't need to
match exactly.
.../nautilus-search-engine-simple.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libnautilus-private/nautilus-search-engine-simple.c b/libnautilus-private/nautilus-search-engine-simple.c
index 1bed07b..84b08f7 100644
--- a/libnautilus-private/nautilus-search-engine-simple.c
+++ b/libnautilus-private/nautilus-search-engine-simple.c
@@ -242,7 +242,7 @@ visit_directory (GFile *dir, SearchThreadData *data)
found = FALSE;
for (l = data->mime_types; mime_type != NULL && l != NULL; l = l->next) {
- if (g_content_type_equals (mime_type, l->data)) {
+ if (g_content_type_is_a (mime_type, l->data)) {
found = TRUE;
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]