[gnome-photos/wip/rishi/collection: 31/40] base-item: Shuffle some code around



commit a9176c46ea749c7eedc79ca2eabb96836f2078b2
Author: Debarshi Ray <debarshir gnome org>
Date:   Thu Jan 25 02:23:21 2018 +0100

    base-item: Shuffle some code around
    
    This will make the subsequent commit easier to read.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=751212

 src/photos-base-item.c | 28 ++++++++++++++--------------
 1 file changed, 14 insertions(+), 14 deletions(-)
---
diff --git a/src/photos-base-item.c b/src/photos-base-item.c
index 719ffba8..5139404a 100644
--- a/src/photos-base-item.c
+++ b/src/photos-base-item.c
@@ -469,6 +469,20 @@ photos_base_item_set_original_icon (PhotosBaseItem *self, GdkPixbuf *icon)
 }
 
 
+static void
+photos_base_item_update_info_from_type (PhotosBaseItem *self)
+{
+  PhotosBaseItemPrivate *priv;
+
+  priv = photos_base_item_get_instance_private (self);
+
+  if (strstr (priv->rdf_type, "nfo#DataContainer") != NULL)
+    priv->collection = TRUE;
+
+  PHOTOS_BASE_ITEM_GET_CLASS (self)->update_type_description (self);
+}
+
+
 static void
 photos_base_item_create_thumbnail_in_thread_func (gpointer data, gpointer user_data)
 {
@@ -2603,20 +2617,6 @@ photos_base_item_refresh_icon (PhotosBaseItem *self)
 }
 
 
-static void
-photos_base_item_update_info_from_type (PhotosBaseItem *self)
-{
-  PhotosBaseItemPrivate *priv;
-
-  priv = photos_base_item_get_instance_private (self);
-
-  if (strstr (priv->rdf_type, "nfo#DataContainer") != NULL)
-    priv->collection = TRUE;
-
-  PHOTOS_BASE_ITEM_GET_CLASS (self)->update_type_description (self);
-}
-
-
 static void
 photos_base_item_populate_from_cursor (PhotosBaseItem *self, TrackerSparqlCursor *cursor)
 {


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