Re: Injecting input inside a gtk program?

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

 



On Fri, Jun 26, 2009 at 5:38 AM, Dan Kegel<dank@xxxxxxxxx> 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.

http://k3d.svn.sourceforge.net/viewvc/k3d/tags/k3d-0.7.0.0/k3dsdk/ngui/interactive.cpp?revision=558&view=markup
seems to have a lot of interesting bits along that line...
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list


[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux