On 08/20/2009 10:27 PM, Patrick M. Rutkowski wrote:
> I've written a test case that anybody can compile and run:
> http://www.rutski89.com/static/event_test.c
>
> It contains the following line of code in the any_event() function:
> printf("IT WORKS!\n");
>
> That currently does not get printed.
I figured it all out, and wrote it up in an article here:
http://www.rutski89.com/dynamic/journal.html?name=gtkwidget
Sleepiness was already hitting hard while banging away at the
keyboard, so please do let me know if you see any mistakes.
-Patrick
On Fri, Aug 21, 2009 at 3:58 AM, Patrick M. Ru
Actually, I just figured it out a few moments ago. Adding the
following to realize() beings to fix things:
GTK_WIDGET_SET_FLAGS(widget, GTK_CAN_FOCUS);
I start to get keyboard events and such.
However, there's another problem now! Even with GTK_CAN_FOCUS, I still
don't get GDK_MOTION_NOTIFY even
On 08/20/2009 10:27 PM, Patrick M. Rutkowski wrote:
> I've written a test case that anybody can compile and run:
> http://www.rutski89.com/static/event_test.c
>
> It contains the following line of code in the any_event() function:
> printf("IT WORKS!\n");
>
> That currently does not get printed.
I've written a test case that anybody can compile and run:
http://www.rutski89.com/static/event_test.c
It contains the following line of code in the any_event() function:
printf("IT WORKS!\n");
That currently does not get printed.
If you can get the test case to print that line of text, you will
OK, so I've determined that there are no handlers returning TRUE
blocking the default handler.
In fact, there seem to be no event handlers at all! I tested this by
figuring out how to query for handlers, and then checking against a
handler I knew was installed:
http://www.rutski89.com/static/sque
I'm currently trying to figure out how to query if any other handler
are connected. I didn't connect any, so I'm not sure what to do. I'm
looking at
http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#g-signal-handlers-disconnect-matched
for help, but if anybody has any tips that
The default signal handler is not invoked if any of the customized
signal handler returns TRUE or something.
Check if there are any handlers connected to this signal later on that
returns TRUE.
Yu
-
gbooleanuser_function (GtkWidget *widget,
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.
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->eve
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?
_
11 matches
Mail list logo