On Sat, 20 Jan 2018 14:06:50 +0100, Mike Wey wrote:

On 19-01-18 19:31, FloFlo wrote:

I created a gtkcombobox with items. I wish pre-select an item in a list but o've got warnings (and i dont understand why) when i use the gtkcomboboxsetactive function.

Here is my code
....

How can i fix it ?
Thank's
A GtkCombo is not a GtkComboBox, you probably want a GtkComboBoxText
that way you could use gtkcomboboxtextappendtext to add the <br>options, and gtkcomboboxset_active to select on of the options.

PS: This list is actually for the D binding of GTK, and doesn't get a
lot of traffic.

Ok, thx.
I finnaly found a solution.
First, i was using GTK+2, so i upgrade the GTK version and use no depreciated function now and it works ! :)