[gnome-software/gnome-3-10] Never show the 'Remove' buttons in the update panel
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/gnome-3-10] Never show the 'Remove' buttons in the update panel
- Date: Fri, 25 Oct 2013 10:35:08 +0000 (UTC)
commit 2969e438528d3a67bba18d9a623185bd14f00ca8
Author: Richard Hughes <richard hughsie com>
Date: Fri Oct 25 11:25:51 2013 +0100
Never show the 'Remove' buttons in the update panel
src/gs-app-widget.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-app-widget.c b/src/gs-app-widget.c
index 3dd1a3a..c782d25 100644
--- a/src/gs-app-widget.c
+++ b/src/gs-app-widget.c
@@ -114,7 +114,8 @@ gs_app_widget_refresh (GsAppWidget *app_widget)
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)
+ if (gs_app_get_kind (app_widget->priv->app) != GS_APP_KIND_SYSTEM &&
+ !app_widget->priv->show_update)
gtk_widget_set_visible (priv->button, TRUE);
/* TRANSLATORS: this is a button next to the search results that
* allows the application to be easily removed */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]