On Tue, Jan 22, 2008 at 01:00:12AM -0800, iluvlinux wrote: > hi Hello, > the GdkWindow member of the Event structure contains the GdkWindow > associated with > a particular widget or the GdkWindow of the top level window? > > I am trying to generate a keypress event (just for experiment purpose) > and i am confused regarding GdkWindow *source field --- which GdkWindow i > should fill in there? Every widgets has a GdkWindow. To get the top level GdkWindow use gdk_window_get_toplevel(). If you need the top level window GtkWindow use gtk_widget_get_toplevel(). > thanks mike _______________________________________________ gtk-list mailing list gtk-list@xxxxxxxxx http://mail.gnome.org/mailman/listinfo/gtk-list