[gnome-software/wip/jrocha/category-redesign: 5/7] Use popular tiles instead of summary tiles for the category view
- From: Joaquim Manuel Pereira Rocha <jrocha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/jrocha/category-redesign: 5/7] Use popular tiles instead of summary tiles for the category view
- Date: Sun, 13 Aug 2017 17:07:44 +0000 (UTC)
commit ce832acf2e96d52d1b3ac4a81e896ad15cabdb0d
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 c947aa1..7db44a6 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 {
@@ -144,7 +145,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);
@@ -323,7 +324,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 527d534..9c1c07d 100644
--- a/src/gs-category-page.ui
+++ b/src/gs-category-page.ui
@@ -295,7 +295,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>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]