[gnome-photos] base-item: Reduce the number of thumbnailing invariants
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] base-item: Reduce the number of thumbnailing invariants
- Date: Mon, 10 Feb 2014 13:34:57 +0000 (UTC)
commit 907639564635c26c23bb11932c41098584853056
Author: Debarshi Ray <debarshir gnome org>
Date: Sat Feb 8 09:24:42 2014 +0100
base-item: Reduce the number of thumbnailing invariants
src/photos-base-item.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/src/photos-base-item.c b/src/photos-base-item.c
index 7a767d4..79fc3f5 100644
--- a/src/photos-base-item.c
+++ b/src/photos-base-item.c
@@ -62,7 +62,6 @@ struct _PhotosBaseItemPrivate
gboolean collection;
gboolean failed_thumbnailing;
gboolean favorite;
- gboolean thumbnailed;
const gchar *thumb_path;
gchar *author;
gchar *default_app_name;
@@ -199,7 +198,7 @@ photos_base_item_check_effects_and_update_info (PhotosBaseItem *self)
g_object_unref (priv->icon);
- if (priv->thumbnailed)
+ if (priv->thumb_path != NULL)
{
GtkBorder *slice;
@@ -411,7 +410,6 @@ photos_base_item_refresh_thumb_path_pixbuf (GObject *source_object, GAsyncResult
goto out;
}
- priv->thumbnailed = TRUE;
photos_base_item_check_effects_and_update_info (self);
out:
@@ -552,7 +550,6 @@ photos_base_item_file_query_info (GObject *source_object, GAsyncResult *res, gpo
photos_base_item_refresh_thumb_path (self);
else
{
- priv->thumbnailed = FALSE;
photos_base_item_create_thumbnail_async (self,
NULL,
photos_base_item_create_thumbnail_cb,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]