On Wed, Oct 26, 2011 at 12:08:50PM +0100, Tom Medhurst wrote:
> Hmm...
> sidebar.add_attribute(0, "text")

My bad, it's add_attribute(attribute, column)

> Gives me:
> Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()
> 
> ..and gibberish on the GUI? If I change the values I added using:
> data.appendv([0], [u"test1"])
> 
> It gives me:
> Clutter-WARNING **: ./clutter-list-model.c:186: Unable to convert
> from PyObject to gchararray
> Mx-CRITICAL **: mx_label_set_text: assertion `text != NULL' failed
> 
> ..which I think is even more worrying?!!!
> Any ideas?
 
IIRC PyGObject has (had?) some problems with GValue arrays, but for that
you have to ask the pygobject people. How about something like this:

next_row = model.get_n_rows()
model.insert_value(next_row, column, value)


so long

:wq buz
-- 
Paranoid Club meeting this Friday.  Now ... just try to find out where!

GnuPG Fingerprint: 2FFF FC48 C7DF 1EA0 00A0  FD53 8C35 FD2E 6908 7B82

Attachment: signature.asc
Description: Digital signature

_______________________________________________
clutter-app-devel-list mailing list
[email protected]
http://lists.clutter-project.org/listinfo/clutter-app-devel-list

Reply via email to