[gnome-software] Sync hardcoded featured/popular plugin limits with the overview page
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Sync hardcoded featured/popular plugin limits with the overview page
- Date: Mon, 5 Mar 2018 08:57:20 +0000 (UTC)
commit 482db1de4e355fef53cdb58c7119fc5a54830b39
Author: Kalev Lember <klember redhat com>
Date: Mon Mar 5 09:30:48 2018 +0100
Sync hardcoded featured/popular plugin limits with the overview page
The overview page requests a minimum of N_TILES tiles, which is
currently 9. Check the same number in the hardcoded plugins as well,
instead of 5.
plugins/core/gs-plugin-hardcoded-featured.c | 2 +-
plugins/core/gs-plugin-hardcoded-popular.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/core/gs-plugin-hardcoded-featured.c b/plugins/core/gs-plugin-hardcoded-featured.c
index 23efa94d..e491442e 100644
--- a/plugins/core/gs-plugin-hardcoded-featured.c
+++ b/plugins/core/gs-plugin-hardcoded-featured.c
@@ -59,7 +59,7 @@ gs_plugin_add_featured (GsPlugin *plugin,
guint i;
/* we've already got enough featured apps */
- if (gs_app_list_length (list) >= 5)
+ if (gs_app_list_length (list) >= 9)
return TRUE;
/* just add all */
diff --git a/plugins/core/gs-plugin-hardcoded-popular.c b/plugins/core/gs-plugin-hardcoded-popular.c
index e0f864e4..97bca4ab 100644
--- a/plugins/core/gs-plugin-hardcoded-popular.c
+++ b/plugins/core/gs-plugin-hardcoded-popular.c
@@ -50,7 +50,7 @@ gs_plugin_add_popular (GsPlugin *plugin,
NULL };
/* we've already got enough popular apps */
- if (gs_app_list_length (list) >= 5)
+ if (gs_app_list_length (list) >= 9)
return TRUE;
/* just add all */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]