typedef void (*CallWhichButton) ( );
typedef void (*WhichButton)(GtkWidget * ,GdkEventButton * ,int );
void whichButton(GtkWidget *btn,GdkEventButton * event,int but) {
but=event->button;
}
void callWhichButton (GtkWidget *but ) {
g_signal_connect(GTK_BUTTON(but), "button-press-event", G_CALLBACK(whichButton), NULL);
}
extern «C» void whichMousButtons (GtkWidget *but ,int sig ) {
[]( CallWhichButton callWhichButton(GtkWidget * but),WhichButton whichButton(GtkWidget * but, GdkEventButton * event, int sig)){};
}
Код собирается , но не работает.