Re: how to get text from combo box
- From: Jeff Shipman <shippy nmt edu>
- To: alprach <alprach usa net>
- Cc: gtk_list <gtk-list gnome org>
- Subject: Re: how to get text from combo box
- Date: Tue, 20 Feb 2001 09:15:02 -0700 (MST)
The entry widget of a combo box can be accessed via
GTK_ENTRY(GTK_COMBO(my_combo_box)->entry). Then, you
can set activate signals on that and you can use
gtk_editable_get_chars() to get the text. If you want
to get the text each time something is selected in
the list, then hook the "select-child" signal up to
GTK_ENTRY(GTK_COMBO(my_combo_box)->list) and then
use gtk_editable_get_chars() as before.
Hope this helps. :)
Jeff "Shippy" Shipman E-Mail: shippy nmt edu
Computer Science Major ICQ: 1786493
New Mexico Institute of Mining and Technology
Homepage: http://www.nmt.edu/~shippy
On 20 Feb 2001, alprach wrote:
> hi,.
>
> i am using a combo box ..from which i need to get the text within it..
> how do i connect signal to it(i tried using "activate" but didn't work).
> i am using gtk_get_text_entry in the callback function ...
>
>
> can somebody help me ...
>
> bye,
>
>
> ____________________________________________________________________
> Get free email and a permanent address at http://www.netaddress.com/?N=1
>
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]