Commit 40fd73ee authored by Philip Withnall's avatar Philip Withnall 🚫
Browse files

gs-overview-page: Restrict number of curated apps results

The curated apps query can accurately represent all the filtering which
needs to happen to the results list, so the max-results for the query
doesn’t need to exceed the number of curated app tiles we want to show.
Signed-off-by: Philip Withnall's avatarPhilip Withnall <>
parent 6388d5cc
Pipeline #401087 passed with stage
in 2 minutes and 50 seconds
......@@ -150,10 +150,11 @@ gs_overview_page_get_curated_cb (GObject *source_object,
goto out;
g_assert (gs_app_list_length (list) <= N_TILES);
gs_widget_remove_all (self->box_curated, (GsRemoveFunc) gtk_flow_box_remove);
for (i = 0; i < gs_app_list_length (list) && i < N_TILES; i++) {
for (i = 0; i < gs_app_list_length (list); i++) {
app = gs_app_list_index (list, i);
tile = gs_summary_tile_new (app);
g_signal_connect (tile, "clicked",
......@@ -511,7 +512,7 @@ gs_overview_page_load (GsOverviewPage *self)
query = gs_app_query_new ("is-curated", GS_APP_QUERY_TRISTATE_TRUE,
"max-results", 20,
"max-results", N_TILES,
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment