[gnome-software/gnome-3-10] 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/gnome-3-10] trivial: Do not show an empty box if there are no featured applications
- Date: Mon, 28 Oct 2013 13:58:29 +0000 (UTC)
commit 025bb853c655a64d143d58ad25b6e8859d1ce1cd
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 ee76a20..9a9bb79 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]