[gnome-software] trivial: Do not show an empty box if there are no featured applications
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Do not show an empty box if there are no featured applications
- Date: Mon, 28 Oct 2013 13:17:40 +0000 (UTC)
commit ccd9b9b658320516ff68fa5d13d2d38d546fc2c3
Author: Richard Hughes <richard hughsie com>
Date: Mon Oct 28 12:54:47 2013 +0000
trivial: Do not show an empty box if there are no featured applications
src/gs-shell-overview.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/gs-shell-overview.c b/src/gs-shell-overview.c
index 7682d23..fb6f592 100644
--- a/src/gs-shell-overview.c
+++ b/src/gs-shell-overview.c
@@ -143,6 +143,9 @@ gs_shell_overview_get_featured_cb (GObject *source_object,
GError *error = NULL;
GsApp *app;
+ box = GTK_WIDGET (gtk_builder_get_object (priv->builder, "bin_featured"));
+ gs_container_remove_all (GTK_CONTAINER (box));
+
list = gs_plugin_loader_get_featured_finish (plugin_loader, res, &error);
gtk_widget_set_visible (GTK_WIDGET (gtk_builder_get_object (priv->builder, "featured_heading")), list
!= NULL);
if (list == NULL) {
@@ -151,9 +154,6 @@ gs_shell_overview_get_featured_cb (GObject *source_object,
goto out;
}
- box = GTK_WIDGET (gtk_builder_get_object (priv->builder, "bin_featured"));
- gs_container_remove_all (GTK_CONTAINER (box));
-
/* at the moment, we only care about the first app */
app = GS_APP (list->data);
tile = gs_feature_tile_new (app);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]