[gnome-software: 13/15] gs-overview-page: Use GsSummaryTile instead of GsPopularTile
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software: 13/15] gs-overview-page: Use GsSummaryTile instead of GsPopularTile
- Date: Tue, 20 Apr 2021 16:08:59 +0000 (UTC)
commit 1c0510c7966d3327d7ddb0c4b49e364bbbddb499
Author: Philip Withnall <pwithnall endlessos org>
Date: Tue Apr 20 16:04:22 2021 +0100
gs-overview-page: Use GsSummaryTile instead of GsPopularTile
This is in accordance with the new design:
https://gitlab.gnome.org/Teams/Design/software-mockups/-/blob/master/adaptive/explore-page-mvp.png
Signed-off-by: Philip Withnall <pwithnall endlessos org>
Helps: #1111
src/gs-overview-page.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/gs-overview-page.c b/src/gs-overview-page.c
index 57d7bef76..28702b3da 100644
--- a/src/gs-overview-page.c
+++ b/src/gs-overview-page.c
@@ -16,11 +16,11 @@
#include "gs-shell.h"
#include "gs-overview-page.h"
#include "gs-app-list-private.h"
-#include "gs-popular-tile.h"
#include "gs-featured-carousel.h"
#include "gs-category-tile.h"
#include "gs-hiding-box.h"
#include "gs-common.h"
+#include "gs-summary-tile.h"
#define N_TILES 9
@@ -188,7 +188,7 @@ gs_overview_page_get_popular_cb (GObject *source_object,
for (i = 0; i < gs_app_list_length (list) && i < N_TILES; i++) {
app = gs_app_list_index (list, i);
- tile = gs_popular_tile_new (app);
+ tile = gs_summary_tile_new (app);
g_signal_connect (tile, "clicked",
G_CALLBACK (app_tile_clicked), self);
gtk_container_add (GTK_CONTAINER (self->box_popular), tile);
@@ -238,7 +238,7 @@ gs_overview_page_get_recent_cb (GObject *source_object, GAsyncResult *res, gpoin
for (i = 0; i < gs_app_list_length (list) && i < N_TILES; i++) {
app = gs_app_list_index (list, i);
- tile = gs_popular_tile_new (app);
+ tile = gs_summary_tile_new (app);
g_signal_connect (tile, "clicked",
G_CALLBACK (app_tile_clicked), self);
gtk_container_add (GTK_CONTAINER (self->box_recent), tile);
@@ -343,7 +343,7 @@ gs_overview_page_get_category_apps_cb (GObject *source_object,
/* add all the apps */
for (i = 0; i < gs_app_list_length (list) && i < N_TILES; i++) {
app = gs_app_list_index (list, i);
- tile = gs_popular_tile_new (app);
+ tile = gs_summary_tile_new (app);
g_signal_connect (tile, "clicked",
G_CALLBACK (app_tile_clicked), self);
gtk_container_add (GTK_CONTAINER (box), tile);
@@ -842,12 +842,12 @@ gs_overview_page_setup (GsPage *page,
gtk_container_set_focus_vadjustment (GTK_CONTAINER (self->box_overview), adj);
for (i = 0; i < N_TILES; i++) {
- tile = gs_popular_tile_new (NULL);
+ tile = gs_summary_tile_new (NULL);
gtk_container_add (GTK_CONTAINER (self->box_popular), tile);
}
for (i = 0; i < N_TILES; i++) {
- tile = gs_popular_tile_new (NULL);
+ tile = gs_summary_tile_new (NULL);
gtk_container_add (GTK_CONTAINER (self->box_recent), tile);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]