Can DrawingArea produce key release event?



I want to catch key release event and draw string in DrawingArea.

        gtk_signal_connect(GTK_OBJECT(drawingArea),"key_release_event",GTK_SIGNAL_FUNC(keyReleaseEvent),NULL);
        gtk_signal_connect(GTK_OBJECT(drawingArea),"expose_event",GTK_SIGNAL_FUNC(mainExposeEvent),NULL);
        gtk_widget_set_events(drawingArea,GDK_EXPOSURE_MASK | GDK_KEY_RELEASE_MASK);
        gnome_app_set_contents(GNOME_APP(app),drawingArea);

DrawingArea don't call function keyReleaseEvent when I press any key. How can I do?


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]