[gnome-photos] item-manager: Create a FacebookItem when we get one



commit f9d8b9fd119d9a0a2d1396e0f7b7e3ff214f5710
Author: Álvaro Peña <alvaropg gmail com>
Date:   Thu Nov 28 19:03:41 2013 +0100

    item-manager: Create a FacebookItem when we get one
    
    Fixes: https://bugzilla.gnome.org/700451

 src/photos-item-manager.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-item-manager.c b/src/photos-item-manager.c
index 3f5c2ac..3d23ebe 100644
--- a/src/photos-item-manager.c
+++ b/src/photos-item-manager.c
@@ -30,6 +30,7 @@
 #include "photos-collection-manager.h"
 #include "photos-item-manager.h"
 #include "photos-local-item.h"
+#include "photos-facebook-item.h"
 #include "photos-flickr-item.h"
 #include "photos-query.h"
 #include "photos-single-item-job.h"
@@ -284,6 +285,9 @@ photos_item_manager_create_item (PhotosItemManager *self, TrackerSparqlCursor *c
     {
       if (g_str_has_prefix (identifier, "flickr:") || g_str_has_prefix (identifier, 
"photos:collection:flickr:"))
         ret_val = photos_flickr_item_new (cursor);
+      else if (g_str_has_prefix (identifier, "facebook:")
+               || g_str_has_prefix (identifier, "photos:collection:facebook:"))
+        ret_val = photos_facebook_item_new (cursor);
     }
 
   if (ret_val == NULL)


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