[gnome-software/wip/temp/ubuntu-xenial-rebased: 22/326] Add a write review button instead of hijacking the existing rating system
- From: Iain Lane <iainl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/temp/ubuntu-xenial-rebased: 22/326] Add a write review button instead of hijacking the existing rating system
- Date: Fri, 29 Apr 2016 09:49:09 +0000 (UTC)
commit d008f173bf6d5ea4e4348bb73f7e50378f97a099
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]