[gnome-software] Never show the 'Remove' buttons in the update panel



commit f964bc0ee715c7dde3ded536e271d84a0b098b82
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 39e7507..2268e2a 100644
--- a/src/gs-app-widget.c
+++ b/src/gs-app-widget.c
@@ -144,7 +144,8 @@ gs_app_widget_refresh (GsAppWidget *app_widget)
                break;
        case GS_APP_STATE_UPDATABLE:
        case GS_APP_STATE_INSTALLED:
-               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]