Getting the string from a gtktext?



Hello.

I'm trying to obtain a string from a gtktext widget.
This is what I do:

        gchar *cadena;

        cadena = (gchar *) GTK_TEXT_INDEX(GTK_TEXT(texto),1);

But it doesn't work.
I have seen I must work with gtk_editable_getchars... and it really
works, but I would like to know why my example doesn't work.

--
Antonio Martínez Álvarez, <pascal eresmas net>





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