On Mon, Jun 22, 2009 at 7:32 AM, Dan Kegel<d...@kegel.com> wrote: > On Thu, Jun 18, 2009 at 5:46 PM, Dan Kegel<d...@kegel.com> wrote: >> How does one inject keystrokes in a gtk program? > > http://mail.gnome.org/archives/gtk-app-devel-list/2004-July/msg00016.html > shows how to do it with > gdk_keymap_get_entries_for_keyval() and gtk_main_do_event().
Only that doesn't work in general, because gtk_main_do_event immediately ignores the event if it's not associated with a window. Injecting via gdk_event_put() seems to work better for me. _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list