Re: Simple question
- From: mmassonnet gmail com
- To: gtk-list gnome org
- Subject: Re: Simple question
- Date: Tue, 22 Jan 2008 10:32:19 +0100
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]