[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Sending text input to code from GTK Widgets
- From: J A K Mouw its tudelft nl (Erik Mouw)
- To: gtk-app-devel-list redhat com
- Subject: Re: Sending text input to code from GTK Widgets
- Date: Sat, 5 Feb 2000 15:54:20 +0100 (CET)
John Robicheau wrote:
> I have some text entry boxes in an app I am designing, and I can't
> figure out how to get the text entered in the text entry area into the
> backing C code.
>
> What kind of signal would be used for this? Or is it all in the C
> coding?
>
> It is for a database creation Option panel, and one feild *has* to be
> a text entry....
Use gtk_entry_get_text() to get the text. It is better not to connect
a signal to the entry, because in that way you have to respond to
each and every keypress event while you're actually only interested
in the value after the user typed everything. The best way is to get
the text at the moment the user presses the Apply/Ok/Update/whatever
button.
Erik
--
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department
of Electrical Engineering, Faculty of Information Technology and Systems,
Delft University of Technology, PO BOX 5031, 2600 GA Delft, The Netherlands
Phone: +31-15-2785859 Fax: +31-15-2781843 Email J.A.K.Mouw@its.tudelft.nl
WWW: http://www-ict.its.tudelft.nl/~erik/
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]