Re: gtk_editable_get_chars=gtk_entry_get_text



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]