Re: [gtk-list] combo box events



Bob P wrote:
> 
> I have a combo box in my program, and i would like to update a few
> labels when the selection is changed.  The problem is, i have no idea
> which signal to capture.  I want to create a callback, so whenever the
> you click the down arrow then click on a selection, it raises an event.
>  I could then change the labels to reflect the new selection.

Connect to the "changed" signal from the GtkEntry inside the GtkCombo.
e.g.
		      
  gtk_signal_connect (GTK_OBJECT (GTK_COMBO (combo)->entry), "changed",
                      GTK_SIGNAL_FUNC (on_combo_entry_changed),
                      NULL);

Damon



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]