Re: How can I emulate a mouse click event at a specific location in my code?
- From: jcupitt gmail com
- To: "ying lcs" <yinglcs gmail com>
- Cc: gtk-list gnome org
- Subject: Re: How can I emulate a mouse click event at a specific location in my code?
- Date: Fri, 9 Nov 2007 16:32:14 +0000
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]