[gnome-software] trivial: Do not show the 'Details' header if we have no description
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Do not show the 'Details' header if we have no description
- Date: Wed, 29 Jan 2014 11:42:02 +0000 (UTC)
commit a1a70162a8ffd3c4a9214603255ae3458643ce06
Author: Richard Hughes <richard hughsie com>
Date: Wed Jan 29 11:01:34 2014 +0000
trivial: Do not show the 'Details' header if we have no description
src/gs-shell-details.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-shell-details.c b/src/gs-shell-details.c
index 441d7ea..8a3faec 100644
--- a/src/gs-shell-details.c
+++ b/src/gs-shell-details.c
@@ -479,6 +479,10 @@ gs_shell_details_refresh_all (GsShellDetails *shell_details)
tmp = gs_app_get_description (priv->app);
gs_shell_details_set_description (shell_details, tmp);
+ /* do not show the 'Details' header if we have no description */
+ widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "application_details_details_title"));
+ gtk_widget_set_visible (widget, tmp != NULL);
+
/* set the icon */
tmp = gs_app_get_metadata_item (priv->app, "DataDir::desktop-icon");
if (tmp != NULL) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]