Use "z" modifier to print gsize. Use gsize for the index argument of swfdec_text_field_movie_xy_to_index(). --- swfdec/swfdec_text_field_movie.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/swfdec/swfdec_text_field_movie.c b/swfdec/swfdec_text_field_movie.c index 1f7bc4b..729c2e2 100644 --- a/swfdec/swfdec_text_field_movie.c +++ b/swfdec/swfdec_text_field_movie.c @@ -524,7 +524,7 @@ swfdec_text_field_movie_mouse_cursor (SwfdecActor *actor) { SwfdecTextFieldMovie *text = SWFDEC_TEXT_FIELD_MOVIE (actor); double x, y; - guint index_; + gsize index_; const SwfdecTextAttributes *attr; gboolean hit; @@ -559,7 +559,7 @@ swfdec_text_field_movie_mouse_press (SwfdecActor *actor, guint button) { SwfdecTextFieldMovie *text = SWFDEC_TEXT_FIELD_MOVIE (actor); double x, y; - guint index_; + gsize index_; gboolean hit; if (!text->selectable) @@ -590,7 +590,7 @@ static void swfdec_text_field_movie_mouse_move (SwfdecActor *actor, double x, double y) { SwfdecTextFieldMovie *text = SWFDEC_TEXT_FIELD_MOVIE (actor); - guint index_; + gsize index_; gsize start, end; if (!text->selectable) @@ -604,7 +604,7 @@ swfdec_text_field_movie_mouse_move (SwfdecActor *actor, double x, double y) swfdec_text_buffer_get_selection (text->text, &start, &end); swfdec_text_buffer_set_cursor (text->text, swfdec_text_buffer_get_cursor (text->text) == start ? end : start, index_); - g_print ("setting cursor to %u %u\n", + g_print ("setting cursor to %zu %zu\n", swfdec_text_buffer_get_cursor (text->text) == start ? end : start, index_); } @@ -613,7 +613,7 @@ swfdec_text_field_movie_mouse_release (SwfdecActor *actor, guint button) { SwfdecTextFieldMovie *text = SWFDEC_TEXT_FIELD_MOVIE (actor); double x, y; - guint index_; + gsize index_; gboolean hit; if (!text->selectable)