casting func.
- From: pavel <pavel klebanov ne mediaone net>
- To: gtk-list redhat com
- Subject: casting func.
- Date: Wed, 16 Jun 1999 11:32:14 -0400 (EDT)
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]