[gnome-software] Do not show the ratings stars in the UI
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Do not show the ratings stars in the UI
- Date: Tue, 25 Feb 2014 16:29:56 +0000 (UTC)
commit 044ef3d41d3fb78d5666ab03b65c62ecf1070f53
Author: Richard Hughes <richard hughsie com>
Date: Tue Feb 25 16:29:01 2014 +0000
Do not show the ratings stars in the UI
Disable this until we can automatically generate a 5 star rating for each app.
Resolves: https://bugzilla.gnome.org/show_bug.cgi?id=723760
src/app-widget.ui | 1 +
src/gs-app-tile.c | 1 -
src/gs-star-widget.c | 2 ++
3 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/app-widget.ui b/src/app-widget.ui
index 55247db..ba19058 100644
--- a/src/app-widget.ui
+++ b/src/app-widget.ui
@@ -68,6 +68,7 @@
</child>
<child>
<object class="GsStarWidget" id="star">
+ <property name="visible">False</property>
<property name="halign">start</property>
</object>
<packing>
diff --git a/src/gs-app-tile.c b/src/gs-app-tile.c
index 5516315..f41ec5b 100644
--- a/src/gs-app-tile.c
+++ b/src/gs-app-tile.c
@@ -135,7 +135,6 @@ gs_app_tile_set_app (GsAppTile *tile, GsApp *app)
gs_star_widget_set_rating (GS_STAR_WIDGET (priv->stars),
gs_app_get_rating_kind (priv->app),
gs_app_get_rating (priv->app));
- gtk_widget_set_visible (priv->stars, TRUE);
gtk_widget_hide (priv->waiting);
diff --git a/src/gs-star-widget.c b/src/gs-star-widget.c
index d30837b..0df3028 100644
--- a/src/gs-star-widget.c
+++ b/src/gs-star-widget.c
@@ -116,6 +116,8 @@ gs_star_widget_refresh (GsStarWidget *star)
GsStarWidgetPrivate *priv;
priv = gs_star_widget_get_instance_private (star);
+ /* disabled, see https://bugzilla.gnome.org/show_bug.cgi?id=723760 */
+ gtk_widget_set_visible (GTK_WIDGET (star), FALSE);
gs_star_widget_set_image_rating (GTK_IMAGE (priv->image1),
priv->rating_kind,
priv->rating,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]