Migrating from GtkCombo to GtkComboBoxEntry

Here is an example of a simple, but typical use of a GtkCombo:

1

In order to react to the user's selection, connect to the “changed” signal on the combo and use gtk_entry_get_text (GTK_ENTRY (combo->entry)) to retrieve the selected text.

And here is how it would be done using GtkComboBoxEntry:

1

In order to react to the user's selection, connect to the “changed” signal on the combo and use gtk_entry_get_text (GTK_ENTRY (GTK_BIN (combo_box)->child)) to retrieve the selected text.