[gnome-software] trivial: Don't show a missing rating on a local file



commit a0644760276047a48b11ead77085351b02838bc0
Author: Richard Hughes <richard hughsie com>
Date:   Wed Jan 29 11:12:55 2014 +0000

    trivial: Don't show a missing rating on a local file

 src/gs-shell-details.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-shell-details.c b/src/gs-shell-details.c
index bd82032..c75c304 100644
--- a/src/gs-shell-details.c
+++ b/src/gs-shell-details.c
@@ -609,6 +609,11 @@ gs_shell_details_refresh_all (GsShellDetails *shell_details)
                break;
        }
 
+       /* don't show a missing rating on a local file */
+       if (gs_app_get_state (priv->app) == GS_APP_STATE_LOCAL &&
+           gs_app_get_rating (priv->app) < 0)
+               gtk_widget_set_visible (priv->star, FALSE);
+
        /* 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);


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