[gnome-software] trivial: Only show the launch button for desktop applications
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Only show the launch button for desktop applications
- Date: Tue, 12 Nov 2013 12:02:00 +0000 (UTC)
commit fddee668a20b8d664fdbf3c4c5da033bbc393e64
Author: Richard Hughes <richard hughsie com>
Date: Tue Nov 12 12:01:07 2013 +0000
trivial: Only show the launch button for desktop applications
src/gs-shell-details.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-shell-details.c b/src/gs-shell-details.c
index 98f4445..399c14f 100644
--- a/src/gs-shell-details.c
+++ b/src/gs-shell-details.c
@@ -605,7 +605,11 @@ gs_shell_details_refresh_all (GsShellDetails *shell_details)
switch (gs_app_get_state (priv->app)) {
case GS_APP_STATE_INSTALLED:
case GS_APP_STATE_UPDATABLE:
- gtk_widget_set_visible (widget, TRUE);
+ if (gs_app_get_id_kind (priv->app) == GS_APP_ID_KIND_DESKTOP) {
+ gtk_widget_set_visible (widget, TRUE);
+ } else {
+ gtk_widget_set_visible (widget, FALSE);
+ }
break;
default:
gtk_widget_set_visible (widget, FALSE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]