An easy workaround for this is to just pass -1 as the length parameter.

Abe

On 10 Mar 2003, Johan Dahlin wrote:

> mån 2003-03-10 klockan 14.50 skrev Martin Preishuber:
> > Hi there,
> > 
> > Just a short question, has there been a change in pygtk 1.99.15 compared
> > to 1.99.12 which affects GtkTextBuffer.insert_at_cursor ? RH8 users (RH
> > 8 comes with 1.99.12) report the error:
> 
> Yes, lots of functions that previously required you to pass in the
> length of a string as the second parameter are changed.
> 
> eg.
> 
> GtkTextBuffer.insert_at_cursor("Foobar", 6) 
> 
> will be just
> 
> GtkTextBuffer.insert_at_cursor("Foobar")
> 
> I know it breaks backward compatibility, but I don't think anyone every
> promised that one. It's till beta after all.
> 
> -- 
> Johan Dahlin <[EMAIL PROTECTED]>
> Async Open Source
> 
> _______________________________________________
> pygtk mailing list   [EMAIL PROTECTED]
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
> 

_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to