Re: How to save TextView data to file?



On Thu, 2003-07-24 at 01:01, Ewing Jeff wrote:

print(OUT $text_buffer->get_text(1,20,FALSE));

get_text expects the first two arguments to be Gtk2::TextIter instances.
So if you wanted to get the entire contents of the buffer, use

$buffer->get_text(
        $buffer->get_start_iter,
        $buffer->get_end_iter,
        FALSE
);

Gavin.

-- 
Gavin Brown
e: gavin brown uk com
w: http://jodrell.net/
PGP/GPG key ID: 891D8FCA




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]