[gnome-software] Do not show the remove button when the app is being removed



commit e0141664c05fcb972190c1afa6d837a371f9ab32
Author: Joaquim Rocha <jrocha endlessm com>
Date:   Wed Jul 13 16:15:45 2016 +0100

    Do not show the remove button when the app is being removed
    
    This makes the UI consistent with the mockups proposed by GNOME Design.

 src/gs-shell-details.c |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)
---
diff --git a/src/gs-shell-details.c b/src/gs-shell-details.c
index 2279bc6..68bf27d 100644
--- a/src/gs-shell-details.c
+++ b/src/gs-shell-details.c
@@ -351,13 +351,6 @@ gs_shell_details_switch_to (GsPage *page, gboolean scroll_up)
                        /* TRANSLATORS: button text in the header when an application can be erased */
                        gtk_button_set_label (GTK_BUTTON (self->button_remove), _("_Remove"));
                        break;
-               case AS_APP_STATE_REMOVING:
-                       gtk_widget_set_visible (self->button_remove, TRUE);
-                       gtk_widget_set_sensitive (self->button_remove, FALSE);
-                       gtk_style_context_remove_class (gtk_widget_get_style_context (self->button_remove), 
"destructive-action");
-                       /* TRANSLATORS: button text in the header when an application can be installed */
-                       gtk_button_set_label (GTK_BUTTON (self->button_remove), _("_Removing"));
-                       break;
                case AS_APP_STATE_QUEUED_FOR_INSTALL:
                        gtk_widget_set_visible (self->button_remove, TRUE);
                        gtk_widget_set_sensitive (self->button_remove, TRUE);
@@ -367,6 +360,7 @@ gs_shell_details_switch_to (GsPage *page, gboolean scroll_up)
                case AS_APP_STATE_AVAILABLE_LOCAL:
                case AS_APP_STATE_AVAILABLE:
                case AS_APP_STATE_INSTALLING:
+               case AS_APP_STATE_REMOVING:
                case AS_APP_STATE_UNAVAILABLE:
                case AS_APP_STATE_UNKNOWN:
                        gtk_widget_set_visible (self->button_remove, FALSE);


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