Re: gtk_editable_get_chars=gtk_entry_get_text
- From: John Cupitt <john cupitt ng-london org uk>
- To: dodi-nug <4dadio telkom net>
- Cc: gtk-list gnome org
- Subject: Re: gtk_editable_get_chars=gtk_entry_get_text
- Date: Wed, 06 Jun 2001 11:35:08 +0100
dodi-nug wrote:
> i failed to get text from entry text's widget, it seem that
> in gtk tutorial page(www.gtk.org/tutorial/sec-textentries.html)
> doesn't work too.
> i have tried gtk_editable_get_chars ( Mr. bowman's advise),
> but i didn't work too.
It should work. Try:
char *txt = gtk_editable_get_chars( GTK_EDITABLE( text ), 0, -1 );
printf( "You typed: \"%s\"\n", txt );
free( txt );
John
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]