Re: Getting the SimpleTextEditor to work

From: Date: Thu, 09 Feb 2006 17:41:12 +0000
Subject: Re: Getting the SimpleTextEditor to work
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-6696@lists.php.net to get a copy of this message
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 Mattocks http://www.crisscott.com

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