[gnome-documents/gnome-3-8] gdata-miner: set mimetype for PDF files
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents/gnome-3-8] gdata-miner: set mimetype for PDF files
- Date: Tue, 16 Apr 2013 01:25:06 +0000 (UTC)
commit aec38fffd4c5b24dea8e5b7cfc8af852319ea8f1
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Sat Mar 30 18:58:38 2013 -0400
gdata-miner: set mimetype for PDF files
This will also cause a full reindex of Google resources.
https://bugzilla.gnome.org/show_bug.cgi?id=696928
src/miner/gd-gdata-miner.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/miner/gd-gdata-miner.c b/src/miner/gd-gdata-miner.c
index 65ae1d6..475888d 100644
--- a/src/miner/gd-gdata-miner.c
+++ b/src/miner/gd-gdata-miner.c
@@ -135,6 +135,8 @@ account_miner_job_process_entry (GdAccountMinerJob *job,
/* fake a drawing mimetype, so Documents can get the correct icon */
if (GDATA_IS_DOCUMENTS_DRAWING (doc_entry))
mimetype_override = "application/vnd.sun.xml.draw";
+ else if (GDATA_IS_DOCUMENTS_PDF (doc_entry))
+ mimetype_override = "application/pdf";
gd_miner_tracker_sparql_connection_insert_or_replace_triple
(job->connection,
@@ -367,7 +369,7 @@ gd_gdata_miner_class_init (GdGDataMinerClass *klass)
miner_class->goa_provider_type = "google";
miner_class->miner_identifier = MINER_IDENTIFIER;
- miner_class->version = 1;
+ miner_class->version = 2;
miner_class->create_service = create_service;
miner_class->query = query_gdata;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]