[gnome-software] Do not show the rating star widget for web apps
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Do not show the rating star widget for web apps
- Date: Thu, 17 Oct 2013 21:16:35 +0000 (UTC)
commit 956d46adb258d913bda9bef9919eaa80658dfcd8
Author: Richard Hughes <richard hughsie com>
Date: Thu Oct 17 21:37:49 2013 +0100
Do not show the rating star widget for web apps
src/gs-shell-details.c | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/src/gs-shell-details.c b/src/gs-shell-details.c
index 00dbf0c..eedacc8 100644
--- a/src/gs-shell-details.c
+++ b/src/gs-shell-details.c
@@ -494,8 +494,16 @@ gs_shell_details_refresh_all (GsShellDetails *shell_details)
}
/* set the rating */
- gs_star_widget_set_rating (GS_STAR_WIDGET (priv->star),
- gs_app_get_rating (priv->app));
+ switch (gs_app_get_id_kind (priv->app)) {
+ case GS_APP_ID_KIND_WEBAPP:
+ gtk_widget_set_visible (priv->star, FALSE);
+ break;
+ default:
+ gtk_widget_set_visible (priv->star, TRUE);
+ gs_star_widget_set_rating (GS_STAR_WIDGET (priv->star),
+ gs_app_get_rating (priv->app));
+ break;
+ }
/* make history button insensitive if there is none */
widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "button_history"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]