[gnome-photos/wip/rishi/collection: 1/42] thumbnail-factory: Lift the restriction on non-native GFiles



commit 8b2af28a10484b5f7f4baaecf301bca90baf8afb
Author: Debarshi Ray <debarshir gnome org>
Date:   Thu Jan 25 15:14:38 2018 +0100

    thumbnail-factory: Lift the restriction on non-native GFiles
    
    It was problematic for MediaServerItems, but nobody noticed because
    DLNA-support is disabled by default. In the future, importing content
    from attached devices will also require thumbnailing non-native files.

 src/photos-thumbnail-factory.c | 1 -
 1 file changed, 1 deletion(-)
---
diff --git a/src/photos-thumbnail-factory.c b/src/photos-thumbnail-factory.c
index b0f4b3d9..779262f5 100644
--- a/src/photos-thumbnail-factory.c
+++ b/src/photos-thumbnail-factory.c
@@ -371,7 +371,6 @@ photos_thumbnail_factory_generate_thumbnail (PhotosThumbnailFactory *self,
 
   g_return_val_if_fail (PHOTOS_IS_THUMBNAIL_FACTORY (self), FALSE);
   g_return_val_if_fail (G_IS_FILE (file), FALSE);
-  g_return_val_if_fail (g_file_is_native (file), FALSE);
   g_return_val_if_fail (mime_type != NULL && mime_type[0] != '\0', FALSE);
   g_return_val_if_fail (cancellable == NULL || G_IS_CANCELLABLE (cancellable), FALSE);
   g_return_val_if_fail (error == NULL || *error == NULL, FALSE);


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