[gnome-software] Only mark the stars as sensitive if the application is installed
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Only mark the stars as sensitive if the application is installed
- Date: Mon, 18 Nov 2013 17:02:43 +0000 (UTC)
commit 09115454bee84e2bc66070482861e6d03f46d7f6
Author: Richard Hughes <richard hughsie com>
Date: Mon Nov 18 17:01:42 2013 +0000
Only mark the stars as sensitive if the application is installed
src/gs-shell-details.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-shell-details.c b/src/gs-shell-details.c
index 80d296f..df2ad01 100644
--- a/src/gs-shell-details.c
+++ b/src/gs-shell-details.c
@@ -601,6 +601,10 @@ gs_shell_details_refresh_all (GsShellDetails *shell_details)
break;
}
+ /* only mark the stars as sensitive if the application is installed */
+ gtk_widget_set_sensitive (priv->star,
+ gs_app_get_state (priv->app) == GS_APP_STATE_INSTALLED);
+
/* only show launch button when the application is installed */
widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "button_details_launch"));
switch (gs_app_get_state (priv->app)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]