Re: Simple question

On Tue, Jan 22, 2008 at 01:00:12AM -0800, iluvlinux wrote:
> hi


>    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 


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