je veux savoir comment je pourrai recuperer l'indice de l'element selectionné dans une comboBox
j'ai creé ma combobox de la maniere suivante :
pList = g_list_append(pList,"Yes");
pList = g_list_append(pList,"No");
gtk_combo_set_popdown_strings(GTK_COMBO(MyCombo),pList);
mais à chaque fois que je fais
gtk_list_index(pList,gtk_entry_get_text(GTK_ENTRY(GTK_COMBO(MyCombo)->entry)));
ca me retourne -1
je ne sais pourquoi
est ce qu'il y a quelqu'un qui pourra m'aider ?