[gnome-software] overview page: Pre-seed recent app tiles to make first load seamless
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] overview page: Pre-seed recent app tiles to make first load seamless
- Date: Mon, 22 Jan 2018 12:26:29 +0000 (UTC)
commit 6b34df8f6de5065b4d641eefb956650e461100d6
Author: Kalev Lember <klember redhat com>
Date: Mon Jan 22 13:23:00 2018 +0100
overview page: Pre-seed recent app tiles to make first load seamless
This also avoids size allocation warnings that the previous widget
hiding was producing:
12:17:05:0222 Gtk Negative content height -1 (allocation 1, extents 1x1) while allocating gadget (node
button, owner GsPopularTile)
12:17:05:0222 Gtk gtk_widget_size_allocate(): attempt to allocate widget with width 153 and height -30
12:17:05:0222 Gtk Negative content height -1 (allocation 1, extents 1x1) while allocating gadget (node
button, owner GsPopularTile)
12:17:05:0223 Gtk gtk_widget_size_allocate(): attempt to allocate widget with width 153 and height -30
12:17:05:0223 Gtk Negative content height -1 (allocation 1, extents 1x1) while allocating gadget (node
button, owner GsPopularTile)
12:17:05:0223 Gtk gtk_widget_size_allocate(): attempt to allocate widget with width 152 and height -30
12:17:05:0224 Gtk Negative content height -1 (allocation 1, extents 1x1) while allocating gadget (node
button, owner GsPopularTile)
12:17:05:0224 Gtk gtk_widget_size_allocate(): attempt to allocate widget with width 152 and height -30
12:17:05:0224 Gtk Negative content height -1 (allocation 1, extents 1x1) while allocating gadget (node
button, owner GsPopularTile)
12:17:05:0224 Gtk gtk_widget_size_allocate(): attempt to allocate widget with width 152 and height -30
12:17:05:0225 Gtk Negative content height -1 (allocation 1, extents 1x1) while allocating gadget (node
button, owner GsPopularTile)
12:17:05:0225 Gtk gtk_widget_size_allocate(): attempt to allocate widget with width 152 and height -30
src/gs-overview-page.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/gs-overview-page.c b/src/gs-overview-page.c
index 2516480..c4bea84 100644
--- a/src/gs-overview-page.c
+++ b/src/gs-overview-page.c
@@ -916,9 +916,10 @@ gs_overview_page_setup (GsPage *page,
gtk_container_add (GTK_CONTAINER (priv->box_popular), tile);
}
- /* hide unless there are enough apps */
- gtk_widget_set_visible (priv->box_recent, FALSE);
- gtk_widget_set_visible (priv->recent_heading, FALSE);
+ for (i = 0; i < N_TILES; i++) {
+ tile = gs_popular_tile_new (NULL);
+ gtk_container_add (GTK_CONTAINER (priv->box_recent), tile);
+ }
/* handle category expander */
g_signal_connect (priv->categories_expander_button_down, "clicked",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]