[gnome-software] Do not show the 'Support' box for local packages
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Do not show the 'Support' box for local packages
- Date: Wed, 29 Jan 2014 11:42:22 +0000 (UTC)
commit 88b411eb7bc04beece76e71dd0f2953744279c78
Author: Richard Hughes <richard hughsie com>
Date: Wed Jan 29 11:04:45 2014 +0000
Do not show the 'Support' box for local packages
src/gs-shell-details.c | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-shell-details.c b/src/gs-shell-details.c
index 8a3faec..bd82032 100644
--- a/src/gs-shell-details.c
+++ b/src/gs-shell-details.c
@@ -630,6 +630,17 @@ gs_shell_details_refresh_all (GsShellDetails *shell_details)
break;
}
+ /* only show support box for non-local packages */
+ widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "box_details_support"));
+ switch (gs_app_get_state (priv->app)) {
+ case GS_APP_STATE_LOCAL:
+ gtk_widget_set_visible (widget, FALSE);
+ break;
+ default:
+ gtk_widget_set_visible (widget, TRUE);
+ break;
+ }
+
/* make history button insensitive if there is none */
widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "button_history"));
switch (gs_app_get_id_kind (priv->app)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]