[gnome-software] trivial: Fix the action text caption for live updates in the search results
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Fix the action text caption for live updates in the search results
- Date: Tue, 22 Dec 2015 15:30:21 +0000 (UTC)
commit 547e7568c9206948898902b162491e4cb654fffb
Author: Richard Hughes <richard hughsie com>
Date: Tue Dec 22 15:19:00 2015 +0000
trivial: Fix the action text caption for live updates in the search results
src/gs-app-row.c | 13 ++++++++++---
src/gs-shell-details.c | 1 +
2 files changed, 11 insertions(+), 3 deletions(-)
---
diff --git a/src/gs-app-row.c b/src/gs-app-row.c
index 73bb0cc..8764978 100644
--- a/src/gs-app-row.c
+++ b/src/gs-app-row.c
@@ -259,9 +259,15 @@ gs_app_row_refresh (GsAppRow *app_row)
break;
case AS_APP_STATE_UPDATABLE_LIVE:
gtk_widget_set_visible (priv->button, TRUE);
- /* TRANSLATORS: this is a button next to the search results that
- * allows the firmware to be easily updated */
- gtk_button_set_label (GTK_BUTTON (priv->button), _("Install"));
+ if (priv->show_update) {
+ /* TRANSLATORS: this is a button in the updates panel
+ * that allows the app to be easily updated live */
+ gtk_button_set_label (GTK_BUTTON (priv->button), _("Install"));
+ } else {
+ /* TRANSLATORS: this is a button next to the search
+ * results that allows the app to be easily updated live */
+ gtk_button_set_label (GTK_BUTTON (priv->button), _("Update"));
+ }
break;
case AS_APP_STATE_UPDATABLE:
case AS_APP_STATE_INSTALLED:
@@ -306,6 +312,7 @@ gs_app_row_refresh (GsAppRow *app_row)
if (priv->selectable) {
if (gs_app_get_id_kind (priv->app) == AS_ID_KIND_DESKTOP ||
+ gs_app_get_id_kind (priv->app) == AS_ID_KIND_RUNTIME ||
gs_app_get_id_kind (priv->app) == AS_ID_KIND_WEB_APP)
gtk_widget_set_visible (priv->checkbox, TRUE);
gtk_widget_set_sensitive (priv->button, FALSE);
diff --git a/src/gs-shell-details.c b/src/gs-shell-details.c
index da20d1b..590ad41 100644
--- a/src/gs-shell-details.c
+++ b/src/gs-shell-details.c
@@ -199,6 +199,7 @@ gs_shell_details_switch_to (GsShellDetails *self)
case AS_APP_STATE_INSTALLED:
case AS_APP_STATE_REMOVING:
case AS_APP_STATE_UPDATABLE:
+ case AS_APP_STATE_UPDATABLE_LIVE:
gtk_widget_set_visible (self->button_install, FALSE);
break;
case AS_APP_STATE_UNAVAILABLE:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]