[recipes] Set contributed property when loading recipes
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes] Set contributed property when loading recipes
- Date: Sun, 19 Feb 2017 16:52:19 +0000 (UTC)
commit def136549a3de70a64249368bcbc5016e57dcb23
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Feb 19 10:44:59 2017 -0500
Set contributed property when loading recipes
This is determined purely by where a recipe is loaded from:
if it comes from the preinstalled data, it is contributed.
src/gr-recipe-store.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/gr-recipe-store.c b/src/gr-recipe-store.c
index f2edf5a..a63f136 100644
--- a/src/gr-recipe-store.c
+++ b/src/gr-recipe-store.c
@@ -342,6 +342,7 @@ load_recipes (GrRecipeStore *self,
"diets", diets,
"images", images,
"default-image", default_image,
+ "contributed", contributed,
"readonly", contributed,
NULL);
}
@@ -369,6 +370,7 @@ load_recipes (GrRecipeStore *self,
"default-image", default_image,
"ctime", ctime,
"mtime", mtime,
+ "contributed", contributed,
"readonly", contributed && !own,
NULL);
g_hash_table_insert (self->recipes, g_strdup (id), recipe);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]