GtkText widget



Hi,
I am newbie so my question is simple:
How can I get a text from GtkText widget? I know there is function
"gtk_editable_get_chars" of GtkEditable widget, buf if I use this I get
segfault.
I want do someting like this:
[...]
char *comment = strdup(gtk_editable_get_chars((GtkEditable *)text_comment, 0
				gtk_text_get_length(GTK_TEXT(text_comment))));
[...]
where text_comment is (GtkText *) object. It compiles ok, but segfaults.
I tried to find some examples of using GtkText, but I coundn't find...

Please help me. Thanks!

Martynas
--
((falco infoseka lt)&&(ICQ#103686861))




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