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?
_
On Wed, Aug 19, 2009 at 07:53:05AM -0700, Monchai Lertsutthiwong wrote:
> In order to use GTK as a GUI for my existing work in C language, I need
> to add "gtk.h" and "glib.h" to the include files on my existing work.
>
> However, I don't know how to embed these two include files properly
> into t
Hi all,
I have a problem about how to embed "gtk.h" library into existing work. My
existing work is written in C programming language
and I use automake to compile it. At this point, I want to create a
graphical user interface (GUI) with GTK+ for my existing work.
For example, in GTK+, if I wa