[rhythmbox] rating: use signed parameters for rb_rating_render_stars (bug #631698)



commit 46550f4957967ed3e9679f5be70aa959e08287c9
Author: Jonathan Matthew <jonathan d14n org>
Date:   Thu Oct 14 12:04:36 2010 +1000

    rating: use signed parameters for rb_rating_render_stars (bug #631698)
    
    Sometimes we need to render to negative coordinates (when scrolling a
    tree view up, for instance), so they need to be signed.

 widgets/rb-rating-helper.c |    8 ++++----
 widgets/rb-rating-helper.h |    4 ++--
 2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/widgets/rb-rating-helper.c b/widgets/rb-rating-helper.c
index 1a58604..530715e 100644
--- a/widgets/rb-rating-helper.c
+++ b/widgets/rb-rating-helper.c
@@ -161,10 +161,10 @@ gboolean
 rb_rating_render_stars (GtkWidget *widget,
 			GdkWindow *window,
 			RBRatingPixbufs *pixbufs,
-			gulong x,
-			gulong y,
-			gulong x_offset,
-			gulong y_offset,
+			int x,
+			int y,
+			int x_offset,
+			int y_offset,
 			gdouble rating,
 			gboolean selected)
 {
diff --git a/widgets/rb-rating-helper.h b/widgets/rb-rating-helper.h
index 9dbdc3b..d83e13c 100644
--- a/widgets/rb-rating-helper.h
+++ b/widgets/rb-rating-helper.h
@@ -37,8 +37,8 @@ typedef struct _RBRatingPixbufs RBRatingPixbufs;
 
 gboolean rb_rating_render_stars (GtkWidget *widget, GdkWindow *window,
 				 RBRatingPixbufs *pixbufs,
-				 gulong x, gulong y,
-				 gulong x_offset, gulong y_offset,
+				 int x, int y,
+				 int x_offset, int y_offset,
 				 gdouble rating, gboolean selected);
 
 double   rb_rating_get_rating_from_widget (GtkWidget *widget,



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