[gnome-photos/wip/rishi/collection: 43/46] thumbnail-factory: Kill preview icon



commit f2cfd4a5594b78c9378edd408b972bda17ccb527
Author: Debarshi Ray <debarshir gnome org>
Date:   Thu Jan 25 15:19:23 2018 +0100

    thumbnail-factory: Kill preview icon

 src/photos-thumbnail-factory.c | 39 ++++++++++++++++++++-------------------
 1 file changed, 20 insertions(+), 19 deletions(-)
---
diff --git a/src/photos-thumbnail-factory.c b/src/photos-thumbnail-factory.c
index 4a3981a7..704f839a 100644
--- a/src/photos-thumbnail-factory.c
+++ b/src/photos-thumbnail-factory.c
@@ -383,25 +383,26 @@ photos_thumbnail_factory_generate_thumbnail (PhotosThumbnailFactory *self,
 
   thumbnail_size = photos_utils_get_icon_size ();
 
-  {
-    g_autoptr (GError) preview_error = NULL;
-
-    pixbuf = photos_thumbnail_factory_get_preview (self, file, thumbnail_size, cancellable, &preview_error);
-    if (preview_error != NULL)
-      {
-        if (g_error_matches (preview_error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
-          {
-            local_error = g_steal_pointer (&preview_error);
-            goto out;
-          }
-      }
-  }
-
-  if (pixbuf != NULL)
-    {
-      ret_val = TRUE;
-      goto out;
-    }
+  /* { */
+  /*   g_autoptr (GError) preview_error = NULL; */
+
+  /*   pixbuf = photos_thumbnail_factory_get_preview (self, file, thumbnail_size, cancellable, 
&preview_error); */
+  /*   if (preview_error != NULL) */
+  /*     { */
+  /*       if (g_error_matches (preview_error, G_IO_ERROR, G_IO_ERROR_CANCELLED)) */
+  /*         { */
+  /*           local_error = g_steal_pointer (&preview_error); */
+  /*           goto out; */
+  /*         } */
+  /*     } */
+  /* } */
+
+  /* if (pixbuf != NULL) */
+  /*   { */
+  /*     g_message ("factory: %p", pixbuf); */
+  /*     ret_val = TRUE; */
+  /*     goto out; */
+  /*   } */
 
   if (self->connection == NULL)
     {


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