[gnome-software] Don't show empty app boxes if no popular results are available
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Don't show empty app boxes if no popular results are available
- Date: Thu, 6 Nov 2014 12:04:10 +0000 (UTC)
commit fc9181482c8c549ba8d5430c01cbdbcdcd189c44
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]