[evince] Restore fallback to mime type from URI on Windows



commit e5c359703aa7a7eb1aece12b1e1e8c73b7386d09
Author: Cédric Krier <ced b2ck com>
Date:   Tue Mar 9 15:27:19 2021 +0100

    Restore fallback to mime type from URI on Windows
    
    The changeset e7c974340 wrongly deactivate the fallback for Windows and
    activate it for all others.

 libdocument/ev-file-helpers.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/libdocument/ev-file-helpers.c b/libdocument/ev-file-helpers.c
index 78c0374e1..436f6a7f5 100644
--- a/libdocument/ev-file-helpers.c
+++ b/libdocument/ev-file-helpers.c
@@ -465,7 +465,7 @@ get_mime_type_from_data (const gchar *uri, GError **error)
                 return NULL;
         }
 
-#ifndef G_OS_WIN32
+#ifdef G_OS_WIN32
        /* On Windows, the implementation of g_content_type_guess() is
         * sometimes too limited, so we do use get_mime_type_from_uri()
         * as a fallback */


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