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



commit e09922e97754a6a40d5c068f4c15106aa4a7a5a8
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 already problematic for MediaServerItems, but nobody noticed
    because DLNA-support is disabled by default. It's now going to be an
    issue for items coming from attached devices.

 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 453ab833..4a3981a7 100644
--- a/src/photos-thumbnail-factory.c
+++ b/src/photos-thumbnail-factory.c
@@ -372,7 +372,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]