[gnome-software/gnome-3-10] Always show 'Remove' in the details panel for updatable applications



commit 7df764e0d0df4114922574d31a57f3c3aa04d6da
Author: Richard Hughes <richard hughsie com>
Date:   Tue Oct 1 12:10:54 2013 +0100

    Always show 'Remove' in the details panel for updatable applications

 src/gs-shell-details.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-shell-details.c b/src/gs-shell-details.c
index 888994a..78a08cf 100644
--- a/src/gs-shell-details.c
+++ b/src/gs-shell-details.c
@@ -116,6 +116,7 @@ gs_shell_details_refresh (GsShellDetails *shell_details)
        } else {
                switch (state) {
                case GS_APP_STATE_INSTALLED:
+               case GS_APP_STATE_UPDATABLE:
                        gtk_widget_set_visible (widget, TRUE);
                        gtk_widget_set_sensitive (widget, TRUE);
                        gtk_style_context_add_class (gtk_widget_get_style_context (widget), 
"destructive-action");
@@ -129,7 +130,6 @@ gs_shell_details_refresh (GsShellDetails *shell_details)
                        /* TRANSLATORS: button text in the header when an application can be installed */
                        gtk_button_set_label (GTK_BUTTON (widget), _("Removing"));
                        break;
-               case GS_APP_STATE_UPDATABLE:
                case GS_APP_STATE_AVAILABLE:
                case GS_APP_STATE_INSTALLING:
                        gtk_widget_set_visible (widget, FALSE);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]