[gnome-software/wip/rancell/reviews: 16/33] Use rating when clicking on stars to start review



commit 5b2f343be4fde4cd4dc3056221a0c0ebfe4eb271
Author: Robert Ancell <robert ancell canonical com>
Date:   Thu Jan 14 21:25:34 2016 +1300

    Use rating when clicking on stars to start review

 src/gs-app-review-dialog.h |    2 ++
 src/gs-shell-details.c     |    1 +
 2 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-app-review-dialog.h b/src/gs-app-review-dialog.h
index ff82a33..59ff2ba 100644
--- a/src/gs-app-review-dialog.h
+++ b/src/gs-app-review-dialog.h
@@ -32,6 +32,8 @@ G_DECLARE_FINAL_TYPE (GsAppReviewDialog, gs_app_review_dialog, GS, APP_REVIEW_DI
 
 GtkWidget      *gs_app_review_dialog_new               (void);
 gint            gs_app_review_dialog_get_rating        (GsAppReviewDialog      *dialog);
+void            gs_app_review_dialog_set_rating        (GsAppReviewDialog      *dialog,
+                                                        gint                    rating);
 const gchar    *gs_app_review_dialog_get_summary       (GsAppReviewDialog      *dialog);
 gchar          *gs_app_review_dialog_get_text          (GsAppReviewDialog      *dialog);
 
diff --git a/src/gs-shell-details.c b/src/gs-shell-details.c
index cc57509..35cbee2 100644
--- a/src/gs-shell-details.c
+++ b/src/gs-shell-details.c
@@ -1343,6 +1343,7 @@ gs_shell_details_rating_changed_cb (GsStarWidget *star,
        GtkResponseType response;
 
        dialog = gs_app_review_dialog_new ();
+       gs_app_review_dialog_set_rating (GS_APP_REVIEW_DIALOG (dialog), rating);
 
        gtk_window_set_transient_for (GTK_WINDOW (dialog), gs_shell_get_window (self->shell));
        response = gtk_dialog_run (GTK_DIALOG (dialog));


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