[gnome-photos] base-item: Disable favoriting albums
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] base-item: Disable favoriting albums
- Date: Tue, 19 Apr 2016 16:21:41 +0000 (UTC)
commit 70737fcf114c56acc0e14015430fd1e6abf8c376
Author: Rafael Fonseca <r4f4rfs gmail com>
Date: Fri Apr 15 16:05:23 2016 +0200
base-item: Disable favoriting albums
https://bugzilla.gnome.org/show_bug.cgi?id=764680
src/photos-base-item.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/photos-base-item.c b/src/photos-base-item.c
index 4a700f9..17b3661 100644
--- a/src/photos-base-item.c
+++ b/src/photos-base-item.c
@@ -2200,7 +2200,7 @@ gboolean
photos_base_item_is_favorite (PhotosBaseItem *self)
{
g_return_val_if_fail (PHOTOS_IS_BASE_ITEM (self), FALSE);
- return self->priv->favorite;
+ return !self->priv->collection && self->priv->favorite;
}
@@ -2655,6 +2655,7 @@ void
photos_base_item_set_favorite (PhotosBaseItem *self, gboolean favorite)
{
g_return_if_fail (PHOTOS_IS_BASE_ITEM (self));
+ g_return_if_fail (!self->priv->collection);
PHOTOS_BASE_ITEM_GET_CLASS (self)->set_favorite (self, favorite);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]