[gnome-software/wip/rancell/ubuntu-ratings: 2/3] Iterate through apps
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/rancell/ubuntu-ratings: 2/3] Iterate through apps
- Date: Thu, 15 Oct 2015 13:43:51 +0000 (UTC)
commit 9b55cc96c27c5cf8dd2000379e44d655d4327321
Author: Robert Ancell <robert ancell canonical com>
Date: Tue Oct 6 13:34:22 2015 +1300
Iterate through apps
src/plugins/gs-plugin-ubuntu-ratings.c | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/gs-plugin-ubuntu-ratings.c b/src/plugins/gs-plugin-ubuntu-ratings.c
index 066236c..c402cef 100644
--- a/src/plugins/gs-plugin-ubuntu-ratings.c
+++ b/src/plugins/gs-plugin-ubuntu-ratings.c
@@ -85,5 +85,16 @@ gs_plugin_refine (GsPlugin *plugin,
GCancellable *cancellable,
GError **error)
{
- return FALSE;
+ GList *l;
+ GsApp *app;
+
+ for (l = *list; l != NULL; l = l->next) {
+ app = GS_APP (l->data);
+ if (gs_app_get_id (app) == NULL)
+ continue;
+ if (gs_app_get_rating (app) != -1)
+ continue;
+ }
+
+ return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]