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



commit 6446be160488f5414f084224f1b2ae72059a63f2
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 a28fbd6..03183f4 100644
--- a/src/gs-star-widget.c
+++ b/src/gs-star-widget.c
@@ -95,11 +95,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]