Retrieve chars of a GtkText widget

How to retrieve the Text of a GtkText Widget? I found the macro GTK_TEXT_INDEX(t, index), but one
problem arises: what happens if the given "index" is too large? Because I don't know the length
of the Widget's contents, I have to loop with an increasing index. 
Is there a correct method?

Thanx in advance.


Joachim Backes


Joachim Backes <>       | Univ. of Kaiserslautern
Computer Center, Supercomputing Division     | Phone: +49-631-205-2438 
D-67653 Kaiserslautern, PO Box 3049, Germany | Fax:   +49-631-205-3056 

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