[gnome-software/wip/jrocha/category-redesign: 54/55] Use popular tiles instead of summary tiles for the category view



commit edf9a157c61a9da1bc68c69dc6af0b66f4c23fae
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 f056d97..0c3a94e 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]