Hello All,

I am using JSON Script to create UI. When I define signal handler definition
in JSON script as below and implemention in C code, I get the following
error:

*Could not find a signal handler 'on_key_press' for signal
'ClutterTexture::button-press-event'*

//JSON Definition
"id" : "image1", "name" : "image1", "type" : "ClutterTexture",
                            "x" : 18, "y" : 22,
                            "filename" : "image1.png",
                            "signals" : [
                                      { "name" : "button-press-event",
"handler" : "on_key_press" }
                                ]

//on_key_press Implementation in C
gboolean on_key_press(ClutterActor       *actor,
                   ClutterButtonEvent *event,
                   gpointer            data)
{
    int key = 2;
    static int test=0;

    {
        g_warning("Entered Button Press Event");



    }
}

Can somebody help me with this implementation? I am using Clutter 1.2.12. If
I change "on_key_press" with "clutter_main_quit", I get the window
destroyed(as expected).

Thanks a lot in advance for help.

Regards,

Mandar Dhonsale
_______________________________________________
clutter-app-devel-list mailing list
[email protected]
http://lists.clutter-project.org/listinfo/clutter-app-devel-list

Reply via email to