paperbox r137 - in trunk: . src



Author: markoa
Date: Sat Apr 26 22:27:02 2008
New Revision: 137
URL: http://svn.gnome.org/viewvc/paperbox?rev=137&view=rev

Log:
More mime types, ignore tag signals for the rest

Modified:
   trunk/ChangeLog
   trunk/src/browser.cc
   trunk/src/tracker-phone.cc

Modified: trunk/src/browser.cc
==============================================================================
--- trunk/src/browser.cc	(original)
+++ trunk/src/browser.cc	Sat Apr 26 22:27:02 2008
@@ -162,6 +162,8 @@
     {
         doc_map::iterator doc_iter = docs_.find(uri.raw());
         shared_ptr<Document> doc = doc_iter->second;
+        // Ignore if a mime type which not in our index has been tagged
+        if (! doc.get()) return;
 
         vector<ustring>::const_iterator it(tags.begin());
         vector<ustring>::const_iterator end(tags.end());
@@ -204,6 +206,8 @@
     {
         doc_map::iterator doc_iter = docs_.find(uri.raw());
         shared_ptr<Document> doc = doc_iter->second;
+        // Ignore if a mime type which not in our index has been un-tagged
+        if (! doc.get()) return;
 
         vector<ustring>::const_iterator it(tags.begin());
         vector<ustring>::const_iterator end(tags.end());

Modified: trunk/src/tracker-phone.cc
==============================================================================
--- trunk/src/tracker-phone.cc	(original)
+++ trunk/src/tracker-phone.cc	Sat Apr 26 22:27:02 2008
@@ -36,10 +36,24 @@
 
     static char* doc_types[] =
     {
+        "application/x-abiword",
         "application/pdf",
+        "application/postscript",
+        "application/x-gzpostscript",
         "application/vnd.oasis.opendocument.text",
-	"application/vnd.oasis.opendocument.presentation",
-	"application/vnd.oasis.opendocument.spreadsheet",
+        "application/vnd.oasis.opendocument.text-template",
+        "application/vnd.oasis.opendocument.text-web",
+        "application/vnd.oasis.opendocument.text-master",
+        "application/vnd.oasis.opendocument.presentation",
+        "application/vnd.oasis.opendocument.presentation-template",
+        "application/vnd.oasis.opendocument.spreadsheet",
+        "application/vnd.oasis.opendocument.spreadsheet-template",
+        "application/vnd.oasis.opendocument.chart",
+        "application/vnd.oasis.opendocument.formula",
+        "application/msword",
+        "application/vnd.ms-word",
+        "application/vnd.ms-excel",
+        "application/vnd.ms-powerpoint",
 	"text/plain",
         NULL
     };



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]