text-field: Cast GString->len to integer before printing

The compiler will warn on 64bit architectures when using %d for
printing a gsize field.

http://bugzilla.openedhand.com/show_bug.cgi?id=2019
This commit is contained in:
Emmanuele Bassi 2010-03-02 17:47:13 +00:00
parent 38a2414498
commit e550755f3d

View File

@ -117,7 +117,10 @@ on_captured_event (ClutterText *text,
g_string_append (str, buf);
g_debug ("added '%s' to '%s' (len:%d)", buf, str->str, str->len);
g_print ("added '%s' to '%s' (len:%d)",
buf,
str->str,
(int) str->len);
attrs = pango_attr_list_new ();