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: [EMAIL PROTECTED]
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
> [EMAIL PROTECTED]
> http://mail.gnome.org/mailman/listinfo/gtk-list
>
_______________________________________________
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list