[gnome-software] gs-star-widget: Simplify interactively setting the rating
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] gs-star-widget: Simplify interactively setting the rating
- Date: Thu, 11 Jun 2020 10:49:18 +0000 (UTC)
commit be7e82bcdd2c0903ef996bddb208fc1c9aee7c76
Author: Philip Withnall <withnall endlessm com>
Date: Tue Jun 2 13:22:46 2020 +0100
gs-star-widget: Simplify interactively setting the rating
Signed-off-by: Philip Withnall <withnall endlessm com>
src/gs-star-widget.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/src/gs-star-widget.c b/src/gs-star-widget.c
index 6b3bfb08..e2570786 100644
--- a/src/gs-star-widget.c
+++ b/src/gs-star-widget.c
@@ -75,10 +75,8 @@ gs_star_widget_button_clicked_cb (GtkButton *button, GsStarWidget *star)
rating = GPOINTER_TO_INT (g_object_get_data (G_OBJECT (button),
"GsStarWidget::value"));
- priv->rating = rating;
- g_object_notify_by_pspec (G_OBJECT (star), properties[PROP_RATING]);
+ gs_star_widget_set_rating (star, rating);
g_signal_emit (star, signals[RATING_CHANGED], 0, priv->rating);
- gs_star_widget_refresh (star);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]