Re: how can I emit a key-press-event?



Victor Chen wrote:
How can I emit a key_press_event to top level window in gtk+?
in windows we can use PostMessage. 
g_signal_emit_by_name crashed in second exec. is there an example?

I think you can achieve this with:
    http://developer.gnome.org/doc/API/2.0/gdk/gdk-Events.html#gdk-event-put

You can also try sending dummy events through the X server.

An example I guess would be the gdk-X11 code which normaly feeds Gtk+
with gdk events ;-)


Cheers,
                                     -Tristan




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