[gnome-software/gnome-3-22] Only show the more reviews button more accurately
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/gnome-3-22] Only show the more reviews button more accurately
- Date: Fri, 2 Dec 2016 08:03:46 +0000 (UTC)
commit 584b5258d9fb4d95f80d8700de9e35ba0f6ee235
Author: Richard Hughes <richard hughsie com>
Date: Sun Nov 27 21:23:14 2016 +0000
Only show the more reviews button more accurately
src/gs-shell-details.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/gs-shell-details.c b/src/gs-shell-details.c
index 973b7c5..c843ec9 100644
--- a/src/gs-shell-details.c
+++ b/src/gs-shell-details.c
@@ -1244,10 +1244,6 @@ gs_shell_details_refresh_reviews (GsShellDetails *self)
}
}
- /* only show the button if there are more to show */
- gtk_widget_set_visible (self->button_more_reviews,
- n_reviews > SHOW_NR_REVIEWS_INITIAL);
-
/* add all the reviews */
gs_container_remove_all (GTK_CONTAINER (self->list_box_reviews));
reviews = gs_app_get_reviews (self->app);
@@ -1269,6 +1265,10 @@ gs_shell_details_refresh_reviews (GsShellDetails *self)
gtk_widget_set_visible (row, i < SHOW_NR_REVIEWS_INITIAL);
}
+ /* only show the button if there are more to show */
+ gtk_widget_set_visible (self->button_more_reviews,
+ reviews->len > SHOW_NR_REVIEWS_INITIAL);
+
/* show the button only if the user never reviewed */
gtk_widget_set_visible (self->button_review, show_review_button);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]