Re: Getting the SimpleTextEditor to work

From: Date: Fri, 10 Feb 2006 09:57:07 +0000
Subject: Re: Getting the SimpleTextEditor to work
References: 1 2  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-6701@lists.php.net to get a copy of this message
At 17:41 09/02/2006, Scott Mattocks wrote: >Tim Streater wrote: >>$start = new GtkTextIter (); >>... >>$text = $this->textbuf->get_text ($start, $end, true); >>where it seems $start and $end need to be GtkTextIter's. But, it won't allow me to >>instantiate these! I get "PHP Fatal error: Class GtkTextIter cannot be instantiated directly >>...". I had previously tried to put NIL for the first two args to get_text but it insisted >>these args had to be of class GtkTextIter. >>Can someone suggest what I should try next or point me at some docs - I haven't been >>able to find very much. > >You can't instantiate the iters you have to get them from the buffer. Try >$buffer->get_start_iter() (or it might be get_iter_start() I don't remember off the top of >my head). You can get the end iter with a similar method. Scott, Thanks for the pointer. That works fine. -- Tim

« previous php.gtk.general (#6701) next »