Re: how do I get the text/contents of a Gtk::TextView
- From: Ondrej Tuma <konference webjet cz>
- To: gtkmm-list gnome org
- Subject: Re: how do I get the text/contents of a Gtk::TextView
- Date: Mon, 16 Jul 2007 14:39:59 +0200
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
you have so many facilities. You may open file as steam, or you can use
low ANSI C (or gtk+ wrapped) fopen, read / write function. What do you
want to know could be how did you read blocks from TextBuffer. So
looking for iterators. There is method, which gets line iterators from
Gtk::TextBuffer - so use it.
Grizzly(Francis Smit) napsal(a):
> yeah hi list,
> I'm trying to work out how to save the content of a
> Gtk::TextView to a file , or for that matter how do I
> load one from a file??
>
> I notice from the docs that the Gtk::TextView holds a
> Gtk::TextBuffer object do I have to get this to solve
> my problem if so how example code would be most
> welcome thank you
>
- --
Ondrej Tuma
Unix-like system is the best operation system from the top of the world.
I'm lucky BSD and linux user. :) Use unix-like, be free. :)
www.blackmouse.biz www.radioakropolis.cz hash.webjet.cz
ICQ: 107760454 JABBER: mcbig jabber cz MSN: ondra tu atlas cz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGm2cfBmNIPxOnb/IRAuwOAJ46Ps+3e+3jGYxo3n0OJ5fXgksM4QCdHjVB
gGbKEq5VadXhdpAXhVprCL8=
=hVu4
-----END PGP SIGNATURE-----
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]