[gnome-photos] base-item: Check edit_graph to determine if the item is already loaded



commit f1cd43a77ece6a72c330e43611b76e0cce772840
Author: Debarshi Ray <debarshir gnome org>
Date:   Fri Mar 10 09:31:42 2017 +0100

    base-item: Check edit_graph to determine if the item is already loaded
    
    In a subsequent commit photos_base_item_pipeline_is_edited_async will
    be changed to only load the pipeline, and not the entire item. This
    will make it much faster for RAW images. Therefore, we can no longer
    use the availability of the pipeline to determine if an item is already
    loaded. We now use priv->edit_graph instead.

 src/photos-base-item.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/photos-base-item.c b/src/photos-base-item.c
index 65c9cdd..259029d 100644
--- a/src/photos-base-item.c
+++ b/src/photos-base-item.c
@@ -3549,7 +3549,7 @@ photos_base_item_load_async (PhotosBaseItem *self,
   task = g_task_new (self, cancellable, callback, user_data);
   g_task_set_source_tag (task, photos_base_item_load_async);
 
-  if (pipeline != NULL)
+  if (priv->edit_graph != NULL)
     {
       GeglNode *graph;
 


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