commit 8d2aeccace509895fa28a063330b6de48bb123ec
Author: Joaquim Rocha <jrocha endlessm com>
Date: Fri Aug 11 23:10:15 2017 +0100
Use popular tiles instead of summary tiles for the category view
The popular tiles will be more compact and end up giving more emphasis
to the featured apps at the top which use the summary tiles.
src/gs-category-page.c | 5 +++--
src/gs-category-page.ui | 1 -
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/gs-category-page.c b/src/gs-category-page.c
index 5da9c8b..b5a5c48 100644
--- a/src/gs-category-page.c
+++ b/src/gs-category-page.c
@@ -28,6 +28,7 @@
#include "gs-app-list-private.h"
#include "gs-common.h"
#include "gs-summary-tile.h"
+#include "gs-popular-tile.h"
#include "gs-category-page.h"
typedef enum {
@@ -146,7 +147,7 @@ gs_category_page_get_apps_cb (GObject *source_object,
for (i = 0; i < gs_app_list_length (list); i++) {
app = gs_app_list_index (list, i);
- tile = gs_summary_tile_new (app);
+ tile = gs_popular_tile_new (app);
g_signal_connect (tile, "clicked",
G_CALLBACK (app_tile_clicked), self);
gtk_container_add (GTK_CONTAINER (self->category_detail_box), tile);
@@ -325,7 +326,7 @@ gs_category_page_reload (GsPage *page)
count = MIN(30, gs_category_get_size (self->subcategory));
for (i = 0; i < count; i++) {
- tile = gs_summary_tile_new (NULL);
+ tile = gs_popular_tile_new (NULL);
gtk_container_add (GTK_CONTAINER (self->category_detail_box), tile);
gtk_widget_set_can_focus (gtk_widget_get_parent (tile), FALSE);
}
diff --git a/src/gs-category-page.ui b/src/gs-category-page.ui
index 8c03a62..b05733f 100644
--- a/src/gs-category-page.ui
+++ b/src/gs-category-page.ui
@@ -286,7 +286,6 @@
<property name="vexpand">True</property>
<property name="valign">start</property>
<property name="min-children-per-line">2</property>
- <property name="max-children-per-line">3</property>
<property name="selection-mode">none</property>
</object>
</child>