[gnome-software] Always show 'Remove' in the details panel for updatable applications
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Always show 'Remove' in the details panel for updatable applications
- Date: Tue, 1 Oct 2013 11:11:00 +0000 (UTC)
commit d641d0ec6a1442666945abeed9c5a6d04e4b2e24
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]