bonsoir,

j'ai un petit soucis avec les combobox :

pComboBox = gtk_combo_box_new_text();

gtk_combo_box_append_text(GTK_COMBO_BOX(pComboBox), "fonction");
gtk_combo_box_append_text(GTK_COMBO_BOX(pComboBox), "fonction 2");
gtk_combo_box_append_text(GTK_COMBO_BOX(pComboBox), "fonction 3");;

pButtonAfficher=gtk_button_new_with_label(g_locale_to_utf8("Afficher",-1,NULL,NULL,NULL));

gtk_combo_box_set_active(GTK_COMBO_BOX(pComboBox), 0);


gtk_box_pack_start(GTK_BOX(pvbox),pButtonAfficher,FALSE,FALSE,0);

g_signal_connect(G_OBJECT(pButtonAfficher), "clicked", G_CALLBACK(afficher_fonction), NULL);
j'ai créer ma liste deroulante mas maintenant je souhaite executer les différentes fonction mais je ne sais pas comment m'y prendre. Donc j'ai mis un CALLBACK sur mon bouton qui appel une fonction afficher mais je ne sais pas commmen différencier les différents choix dans cette fonction.

es ce que quelqu'un pourrait m'aider ?

cordialement