[gnome-software] Do not show a blank space if a GsApp version is not known
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Do not show a blank space if a GsApp version is not known
- Date: Wed, 16 Oct 2013 13:25:30 +0000 (UTC)
commit 8823ed35b2827cfd1a11cf5fe15f9aed1f744940
Author: Richard Hughes <richard hughsie com>
Date: Wed Oct 16 14:10:24 2013 +0100
Do not show a blank space if a GsApp version is not known
src/gs-shell-details.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-shell-details.c b/src/gs-shell-details.c
index 60a23a1..3735c95 100644
--- a/src/gs-shell-details.c
+++ b/src/gs-shell-details.c
@@ -442,7 +442,13 @@ gs_shell_details_refresh_all (GsShellDetails *shell_details)
/* set version */
widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "label_details_version_value"));
- gtk_label_set_label (GTK_LABEL (widget), gs_app_get_version (priv->app));
+ tmp = gs_app_get_version (priv->app);
+ if (tmp != NULL){
+ gtk_label_set_label (GTK_LABEL (widget), tmp);
+ } else {
+ /* TRANSLATORS: this is where the version is not known */
+ gtk_label_set_label (GTK_LABEL (widget), _("Unknown"));
+ }
/* set the size */
widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "label_details_size_value"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]