[gnome-software/gnome-3-10] trivial: Never show the 'Update' button in the UI
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/gnome-3-10] trivial: Never show the 'Update' button in the UI
- Date: Mon, 14 Oct 2013 12:31:12 +0000 (UTC)
commit 39b88bf87a4098041a816a442b29d19147f82a7f
Author: Richard Hughes <richard hughsie com>
Date: Tue Oct 8 09:02:42 2013 +0100
trivial: Never show the 'Update' button in the UI
src/gs-app-widget.c | 12 +-----------
1 files changed, 1 insertions(+), 11 deletions(-)
---
diff --git a/src/gs-app-widget.c b/src/gs-app-widget.c
index b52b448..3dd1a3a 100644
--- a/src/gs-app-widget.c
+++ b/src/gs-app-widget.c
@@ -111,6 +111,7 @@ gs_app_widget_refresh (GsAppWidget *app_widget)
* allows the application to be easily installed */
gtk_button_set_label (GTK_BUTTON (priv->button), _("Install"));
break;
+ case GS_APP_STATE_UPDATABLE:
case GS_APP_STATE_INSTALLED:
gtk_widget_set_visible (priv->spinner, FALSE);
if (gs_app_get_kind (app_widget->priv->app) != GS_APP_KIND_SYSTEM)
@@ -121,17 +122,6 @@ gs_app_widget_refresh (GsAppWidget *app_widget)
if (priv->colorful)
gtk_style_context_add_class (context, "destructive-action");
break;
- case GS_APP_STATE_UPDATABLE:
- gtk_widget_set_visible (priv->spinner, FALSE);
- gtk_widget_set_visible (priv->button, FALSE);
- if (priv->show_update) {
- /* TRANSLATORS: this is a button next to the search results that
- * allows the application to be updated. not normally shown */
- gtk_button_set_label (GTK_BUTTON (priv->button), _("Update"));
- } else {
- gtk_button_set_label (GTK_BUTTON (priv->button), _("Remove"));
- }
- break;
case GS_APP_STATE_INSTALLING:
gtk_spinner_start (GTK_SPINNER (priv->spinner));
gtk_widget_set_visible (priv->spinner, TRUE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]