[gnome-software] trivial: Do not show 'webapp' for invalid apps
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Do not show 'webapp' for invalid apps
- Date: Tue, 23 Feb 2016 20:46:14 +0000 (UTC)
commit fe1b6ac9be2879468018d1ed5221f7ef24475833
Author: Richard Hughes <richard hughsie com>
Date: Tue Feb 23 20:43:46 2016 +0000
trivial: Do not show 'webapp' for invalid apps
This caused some head-scratching when debugging another problem.
src/gs-app-row.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-app-row.c b/src/gs-app-row.c
index a0bf3c0..c956642 100644
--- a/src/gs-app-row.c
+++ b/src/gs-app-row.c
@@ -162,8 +162,12 @@ gs_app_row_refresh (GsAppRow *app_row)
gtk_widget_set_visible (priv->label_tag_foreign, FALSE);
} else {
switch (gs_app_get_id_kind (priv->app)) {
- case AS_ID_KIND_WEB_APP:
case AS_ID_KIND_UNKNOWN:
+ gtk_widget_set_visible (priv->label_tag_webapp, FALSE);
+ gtk_widget_set_visible (priv->label_tag_nonfree, FALSE);
+ gtk_widget_set_visible (priv->label_tag_foreign, FALSE);
+ break;
+ case AS_ID_KIND_WEB_APP:
gtk_widget_set_visible (priv->label_tag_webapp, TRUE);
gtk_widget_set_visible (priv->label_tag_nonfree, FALSE);
gtk_widget_set_visible (priv->label_tag_foreign, FALSE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]