[gnome-software/wip/temp/ubuntu-xenial-rebased-corrected: 23/331] Add a write review button instead of hijacking the existing rating system



commit 4f677dff732c3f54534b7dab998c5818fa92ef9a
Author: Robert Ancell <robert ancell canonical com>
Date:   Thu Jan 28 22:11:36 2016 +1300

    Add a write review button instead of hijacking the existing rating system

 src/gs-shell-details.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-shell-details.c b/src/gs-shell-details.c
index 5b3a783..c7a8310 100644
--- a/src/gs-shell-details.c
+++ b/src/gs-shell-details.c
@@ -968,6 +968,9 @@ gs_shell_details_refresh_reviews (GsShellDetails *self)
 
        gs_container_remove_all (GTK_CONTAINER (self->list_box_reviews));
 
+       /* If you haven't reviewed it, do it now */
+       gtk_widget_set_visible (self->button_review, !gs_app_get_self_review (self->app));
+
        reviews = gs_app_get_reviews (self->app);
        for (i = 0; i < reviews->len; i++) {
                GsAppReview *review;


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