[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: get text from GtkText
- From: Thomas Mailund <mailund mailund dk>
- To: GTK+ App devel list <gtk-app-devel-list gnome org>
- Subject: Re: get text from GtkText
- Date: 28 Aug 2001 21:20:27 +0930
On Tue, 2001-08-28 at 21:48, guigtk wrote:
> Is there any way to get the text that i wrote in a GtkText?
>
With the (old) text widget you can use
gchar* gtk_editable_get_chars (GtkEditable *editable,
gint start_pos,
gint end_pos);
so to get all the text in 'text' you use
gchar *my_text = gtk_editable_get_chars (GTK_EDITABLE (text), 0, -1);
Not sure about the new text widget.
/mailund
--
Give a monkey a brain and he'll swear he's the center of the universe.
PGP signature
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]