On 11/9/07, ying lcs <yinglcs@xxxxxxxxx> 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 _______________________________________________ gtk-list mailing list gtk-list@xxxxxxxxx http://mail.gnome.org/mailman/listinfo/gtk-list