[gnome-software/gnome-3-14] Don't show empty app boxes if no popular results are available



commit c80470098663a26a1c1ba05b76c9dcbf1041bacb
Author: Richard Hughes <richard hughsie com>
Date:   Thu Nov 6 12:03:56 2014 +0000

    Don't show empty app boxes if no popular results are available

 src/gs-shell-overview.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-shell-overview.c b/src/gs-shell-overview.c
index c845fd5..4e8a8c4 100644
--- a/src/gs-shell-overview.c
+++ b/src/gs-shell-overview.c
@@ -109,6 +109,7 @@ gs_shell_overview_get_popular_cb (GObject *source_object,
 
        /* get popular apps */
        list = gs_plugin_loader_get_popular_finish (plugin_loader, res, &error);
+       gtk_widget_set_visible (priv->box_popular, list != NULL);
        gtk_widget_set_visible (priv->popular_heading, list != NULL);
        if (list == NULL) {
                if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]