Re: How can I emulate a mouse click event at a specific location in my code?



On 11/9/07, ying lcs <yinglcs gmail com> wrote:
> Thank you. But i only have ' GtkWidget  *',   How can I get a get a
> GdkWindow in order to use XTestFakeMotionEvent?

You can use gtk_widget_get_toplevel() to get the GtkWindow that's
enclosing your GtkWidget, then (as long as the window is realized),
use GTK_WINDOW()->window to get the GdkWindow.

John


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