Signal marshalling of string + length (GtkTextBuffer::insert-text)
We're encountering a crasher bug in gedit which is due to the closure marshalling of the insert-text signal on a GtkTextBuffer. I don't know if this is a gtk+ annotation problem, or also a pygobject issue (I glanced over the code, and it seems it would need some adaptation also). In gedit there are some cases in which we call gtk_text_buffer_insert_text with a non-null terminated buffer, specifying the length of text to be inserted explicitly. However, when we have signal handlers installed in python for the insert-text signal, gedit crashes due to the fact that the string argument fails to get marshalled to a python unicode string (since it's not null terminated).