casting func.




Hi,

This is part C part GTK question.
How can bot, f(GtkWidget *, gpointer) and g(GtkWidget *, GdkEvent *,
gpointer) be cast to GdkSignalFunc which is typedefed to look like neither
of the above but f()? Is that even legal from the point of view of C?

Also, how are GtkSignalFunc's made use of internally? Also, it lookes like
the latter kind is expected by GTK to return and int, but I define mine as
void. Yet, nothing crashes. So how does all this work?

Pavel



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