Hi,
I m having some problems with a callback function. Let me explain it through code...
Code:
//I have this structure//
typedef struct
{
int cisliceee;
GtkWidget*nalepka;
int poziceee;
}vstup;
//and an array of these structures//
vstup* v[16];
/*and in this callback function I want a pointer to one element of that array, and then work inside of the structure of this particular element*/
void cudl_stisknut(GtkWidget *widget,vstup*v[])
{
if (v[]->poziceee=7){
gtk_main_quit();
}
can anyone tell me what do I do wrong? I just want it to be the way that if the element that emits the signal has a value stored in its poziceee and it equals 7 then to execute the quit function...