Re: Capturing text from Gtktext widget,



Hi,
maybe you can use the function :

gchar * gtk_editable_get_chars(gtk_editable *, gint, gint)

Like this in code:
buffer = gtk_editable_get_char(GTK_EDITABLE(text-widget), s, e);

This function returns a pointer of gchar with the text of the text
widget. It starts reading at postion s. It will and reading at position
e. If you enter a negative value at e it will read all the text to the
end.

Best regards 

Martijn 

"Sreenidhi.B.G" wrote:

Hi,
can anyone tell me , how do I capture all the text entered in the
GtkText Widget, and write it to a buffer.
-regards,
sreenidhi,

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list



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