[gnome-online-miners/wip/owncloud: 2/3] utils: Add .odt, .odp and .ods to gom_filename_to_rdf_type



commit 4b7813de69d01b4bc49859ca78f5239419f5bc80
Author: Debarshi Ray <debarshir gnome org>
Date:   Sun Aug 18 08:27:53 2013 +0200

    utils: Add .odt, .odp and .ods to gom_filename_to_rdf_type
    
    https://bugzilla.gnome.org/show_bug.cgi?id=706158

 src/gom-utils.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/gom-utils.c b/src/gom-utils.c
index 47df0e7..a2218af 100644
--- a/src/gom-utils.c
+++ b/src/gom-utils.c
@@ -70,10 +70,12 @@ gom_filename_to_rdf_type (const gchar *filename_with_extension)
       || g_strcmp0 (extension, ".dot") == 0
       || g_strcmp0 (extension, ".dotx") == 0
       || g_strcmp0 (extension, ".epub") == 0
+      || g_strcmp0 (extension, ".odt") == 0
       || g_strcmp0 (extension, ".pdf") == 0)
     type = "nfo:PaginatedTextDocument";
 
-  else if (g_strcmp0 (extension, ".pot") == 0
+  else if (g_strcmp0 (extension, ".odp") == 0
+           || g_strcmp0 (extension, ".pot") == 0
            || g_strcmp0 (extension, ".potm") == 0
            || g_strcmp0 (extension, ".potx") == 0
            || g_strcmp0 (extension, ".pps") == 0
@@ -87,7 +89,8 @@ gom_filename_to_rdf_type (const gchar *filename_with_extension)
   else if (g_strcmp0 (extension, ".txt") == 0)
     type = "nfo:PlainTextDocument";
 
-  else if (g_strcmp0 (extension, ".xls") == 0
+  else if (g_strcmp0 (extension, ".ods") == 0
+           || g_strcmp0 (extension, ".xls") == 0
            || g_strcmp0 (extension, ".xlsb") == 0
            || g_strcmp0 (extension, ".xlsm") == 0
            || g_strcmp0 (extension, ".xlsx") == 0)


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