1 2 3 4 5 6 7 8 9 10 11
|
void box_clicked (GtkButton *button, GPuntos *pGame)
{
// need to know which button was clicked, so I can use GPuntos structure
}
// .. later
g_signal_connect (G_OBJECT (box1),"clicked",G_CALLBACK (box_clicked), game);
g_signal_connect (G_OBJECT (box2),"clicked",G_CALLBACK (box_clicked), game);
|