Re: newbie GtkTextView question - success.

From: Date: Fri, 01 Sep 2006 23:47:09 +0000
Subject: Re: newbie GtkTextView question - success.
References: 1 2 3 4  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-7210@lists.php.net to get a copy of this message
Ok. Got it working. As a quick test this is what I did: $debug_textbox = $glade->get_widget( "debug_textbox" ); $text_buffer = $debug_textbox->get_buffer(); $iter = $text_buffer->get_end_iter(); $text_buffer->insert($iter, "Hello World $count\n" ); As soon as insert() is called the text in the GtkTextView updates so there's no need to call set_buffer() each time. Finding out how to create a GtkTextIter took a bit of digging since it's not mentioned in the docs. :) Thanks for all your help, -- Yermo > insert(GtkTextIter $iter, $text, [$len]); > > > -- > Regards/MfG, > Christian Weiske > > -- > PHP-GTK General Mailing List (http://gtk.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > ---------------------------------------------------------------------------- DTLink Software http://www.dtlink.com Business and Finance Software Engineering ----------------------------------------------------------------------------

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