Re: "widget_class->event" not working
- From: "Patrick M. Rutkowski" <rutski89 gmail com>
- To: gtk-app-devel-list gnome org
- Subject: Re: "widget_class->event" not working
- Date: Thu, 20 Aug 2009 21:04:01 -0400
Incorrect,
The ISO C standard defines the & operator on a function name to be
optional when taking asking for a function pointer, I just use it as a
habit of style.
Here's a demonstration of this effect:
http://www.rutski89.com/static/funcptr.txt
I still need help with the ->event GTK problem.
-Patrick
On Thu, Aug 20, 2009 at 8:50 PM, Brian J. Tarricone<bjt23 cornell edu> wrote:
On 08/20/2009 05:36 PM, Patrick M. Rutkowski wrote:
I've got the following code: http://www.rutski89.com/static/gtkevent.cpp
I do indeed do this:
widget_class->event = &any_event_r
but then any_event_r() never subsequently get's called, and I'm
certain that the "widget_class->event = &any_event_r" line really does
execute.
Any suggestions?
You're setting ->event to a pointer to a pointer to a function when all
it wants is a pointer to a function.
-brian
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]