GTK+ FAQ
<<< Previous | Development with GTK+: widget specific questions | Next >>>

# How do I catch a combo box change?

The entry which is associated to your GtkCombo send a "changed" signal when:

- some text is typed in

- the selection of the combo box is changed

To catch any combo box change, simply connect your signal handler with

          gtk_signal_connect(GTK_COMBO(cb)->entry,
                             "changed",
                             GTK_SIGNAL_FUNC(my_cb_change_handler),
                             NULL);

<<< Previous | Home | Next >>>
I don't want the user of my applications to enter text into a GtkCombo. Any idea? | Up | How can I define a separation line in a menu?