[gnome-software/1381-category-page-loading-state-doesn-t-match-final-layout: 50/52] gs-overview-page: Initialize featured carousel with empty content
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/1381-category-page-loading-state-doesn-t-match-final-layout: 50/52] gs-overview-page: Initialize featured carousel with empty content
- Date: Fri, 28 Jan 2022 09:56:43 +0000 (UTC)
commit 80de0ebe3572161f3ac5bad5231a5cf507df61ea
Author: Milan Crha <mcrha redhat com>
Date: Thu Jan 20 12:40:48 2022 +0100
gs-overview-page: Initialize featured carousel with empty content
It looks as "being loaded" this way. Also allocate more space for the carousel,
to not flash with the size that much once the content is loaded.
src/gs-overview-page.c | 2 ++
src/gs-overview-page.ui | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/gs-overview-page.c b/src/gs-overview-page.c
index 5362ee910..f152ceb45 100644
--- a/src/gs-overview-page.c
+++ b/src/gs-overview-page.c
@@ -677,6 +677,8 @@ gs_overview_page_init (GsOverviewPage *self)
{
gtk_widget_init_template (GTK_WIDGET (self));
+ gs_featured_carousel_set_apps (GS_FEATURED_CAROUSEL (self->featured_carousel), NULL);
+
g_signal_connect (self, "refreshed", G_CALLBACK (refreshed_cb), self);
}
diff --git a/src/gs-overview-page.ui b/src/gs-overview-page.ui
index 70c7067e7..722155b1f 100644
--- a/src/gs-overview-page.ui
+++ b/src/gs-overview-page.ui
@@ -85,7 +85,7 @@
<child>
<object class="GsFeaturedCarousel" id="featured_carousel">
- <property name="height-request">150</property>
+ <property name="height-request">318</property>
<property name="valign">start</property>
<signal name="app-clicked" handler="featured_carousel_app_clicked_cb"/>
</object>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]