[gnome-photos/wip/rishi/collection: 2/46] base-item: shuffle
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/wip/rishi/collection: 2/46] base-item: shuffle
- Date: Thu, 25 Jan 2018 14:54:59 +0000 (UTC)
commit f3569d6d87e7237a04c9074f7eb73c43c9c11eac
Author: Debarshi Ray <debarshir gnome org>
Date: Thu Jan 25 15:45:05 2018 +0100
base-item: shuffle
src/photos-base-item.c | 54 +++++++++++++++++++++++++-------------------------
1 file changed, 27 insertions(+), 27 deletions(-)
---
diff --git a/src/photos-base-item.c b/src/photos-base-item.c
index e95e6000..31742bed 100644
--- a/src/photos-base-item.c
+++ b/src/photos-base-item.c
@@ -578,6 +578,33 @@ photos_base_item_set_thumbnailing_icon (PhotosBaseItem *self)
}
+static void
+photos_base_item_icon_updated (PhotosBaseItem *self, GIcon *icon)
+{
+ if (icon == NULL)
+ return;
+
+ photos_base_item_set_original_icon (self, GDK_PIXBUF (icon));
+}
+
+
+static void
+photos_base_item_refresh_collection_icon (PhotosBaseItem *self)
+{
+ PhotosBaseItemPrivate *priv;
+
+ priv = photos_base_item_get_instance_private (self);
+
+ if (priv->watcher == NULL)
+ {
+ priv->watcher = photos_collection_icon_watcher_new (self);
+ g_signal_connect_swapped (priv->watcher, "icon-updated", G_CALLBACK (photos_base_item_icon_updated),
self);
+ }
+ else
+ photos_collection_icon_watcher_refresh (priv->watcher);
+}
+
+
static void
photos_base_item_default_set_favorite (PhotosBaseItem *self, gboolean favorite)
{
@@ -698,16 +725,6 @@ photos_base_item_filterable_get_id (PhotosFilterable *filterable)
}
-static void
-photos_base_item_icon_updated (PhotosBaseItem *self, GIcon *icon)
-{
- if (icon == NULL)
- return;
-
- photos_base_item_set_original_icon (self, GDK_PIXBUF (icon));
-}
-
-
static cairo_surface_t *
photos_base_item_main_box_item_get_icon (GdMainBoxItem *box_item)
{
@@ -768,23 +785,6 @@ photos_base_item_main_box_item_get_uri (GdMainBoxItem *box_item)
}
-static void
-photos_base_item_refresh_collection_icon (PhotosBaseItem *self)
-{
- PhotosBaseItemPrivate *priv;
-
- priv = photos_base_item_get_instance_private (self);
-
- if (priv->watcher == NULL)
- {
- priv->watcher = photos_collection_icon_watcher_new (self);
- g_signal_connect_swapped (priv->watcher, "icon-updated", G_CALLBACK (photos_base_item_icon_updated),
self);
- }
- else
- photos_collection_icon_watcher_refresh (priv->watcher);
-}
-
-
static void
photos_base_item_refresh_executed (GObject *source_object, GAsyncResult *res, gpointer user_data)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]