gtk_type_check_object_cast pb



Hello,

here is a part of my prog:
-------------------------------------
void set_active(GtkWidget
*check[])                                                                              
{                                                                                                                
int unsigned
i;                                                                                                  
for
(i=0;i<12;i++)                                                                                               
   
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check[i]),TRUE);                                              
}
-------------------------------------
void setup()
{
....
GtkWidget *check[12];
....
gtk_signal_connect_object(GTK_OBJECT(button),"clicked",GTK_SIGNAL_FUNC(set_active),(gpointer)check);
<-- here
}
-------------------------------------

When I click on the button (here), I get the following error in the core
dump: "gtk_type_check_object_cast"
But when I run the set_active function directly in the prog (like
this:set_active((gpointer)check);) I get no error...
How can I solve this annoying pb?

Thanks in advance,

Anthony

-- 
http://www.freeciv.fr.st




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]