[gnome-software/gnome-3-20] trivial: Disallow clicking on the app details star rating



commit 32d2c7c46e69547d4cc276e7ff8473eb874e8b59
Author: Richard Hughes <richard hughsie com>
Date:   Wed Jun 29 08:33:46 2016 +0100

    trivial: Disallow clicking on the app details star rating
    
    We were setting the image to insensitive rather than the button control.
    
    Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=768136

 src/gs-star-widget.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/gs-star-widget.c b/src/gs-star-widget.c
index f987b3c..ed1ff26 100644
--- a/src/gs-star-widget.c
+++ b/src/gs-star-widget.c
@@ -104,11 +104,11 @@ gs_star_widget_refresh (GsStarWidget *star)
        GsStarWidgetPrivate *priv;
        priv = gs_star_widget_get_instance_private (star);
 
-       gtk_widget_set_sensitive (priv->image1, priv->interactive);
-       gtk_widget_set_sensitive (priv->image2, priv->interactive);
-       gtk_widget_set_sensitive (priv->image3, priv->interactive);
-       gtk_widget_set_sensitive (priv->image4, priv->interactive);
-       gtk_widget_set_sensitive (priv->image5, priv->interactive);
+       gtk_widget_set_sensitive (priv->button1, priv->interactive);
+       gtk_widget_set_sensitive (priv->button2, priv->interactive);
+       gtk_widget_set_sensitive (priv->button3, priv->interactive);
+       gtk_widget_set_sensitive (priv->button4, priv->interactive);
+       gtk_widget_set_sensitive (priv->button5, priv->interactive);
 
        gs_star_widget_style_class_enable (priv->image1, priv->rating > 0);
        gs_star_widget_style_class_enable (priv->image2, priv->rating > 20);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]