Bonjour,

Je rencontre un problème un teste sur une case a coché, qui lorsqu'on la coche rend accessible certains boutons.

Voici la déclaration du bouton :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
	checkfi = gtk_check_button_new_with_label("Filtre Decisionnel");
  	gtk_box_pack_start(GTK_BOX(boxnom), checkfi, TRUE, TRUE, 0);
g_signal_connect(G_OBJECT(checkfi),"toggle",G_CALLBACK(OnCheck),NULL);
et voici la fonction qu'il appel :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
void OnCheck(GtkWidget* widget, gpointer data)
{
	gboolean bCoche;
 
	/* Savoir sicheckfi est coche ou non */
	bCoche = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(checkfi));
 
	if(bCoche)
		gtk_widget_set_sensitive(Boxav,TRUE);
	else
		gtk_widget_set_sensitive(Boxav,FALSE);
 
}
et voici l'erreur renvoyée :

signal `toggle' is invalid for instance