RE: gdk_event_new
- From: Liu Neo-W4135C <W4135C motorola com>
- To: "'Federico Mena Quintero'" <federico ximian com>, Liu Neo-W4135C <W4135C motorola com>
- Cc: gtk-app-devel-list gnome org, gtk-devel-list gnome org
- Subject: RE: gdk_event_new
- Date: Fri, 12 Dec 2003 11:21:13 +0800
Thanks. Bascily,it's for a virtual keypad. Accept a button press, send out a key event. At present, it works fine. Any other ideas for that?
Thanks again and best regards,
ln
-----Original Message-----
From: gtk-devel-list-admin gnome org [mailto:gtk-devel-list-admin gnome org] On Behalf Of Federico Mena Quintero
Sent: 2003Äê12ÔÂ12ÈÕ 5:38
To: Liu Neo-W4135C
Cc: gtk-app-devel-list gnome org; gtk-devel-list gnome org
Subject: Re: gdk_event_new
On Thu, 2003-12-11 at 02:26, Liu Neo-W4135C wrote:
> then, my question. gtk2.2.x has a function gdk_event_new which isn't
> exist in gtk2.0.x. so if i want to new a GdkEvent with 2.0.x, what
> should i do?
Just allocate a GdkEvent structure and fill it in.
The reason to have gdk_event_new() is that 2.2 supports multiple screens, and the screen field of the event is in a private part of the structure. 2.0 doesn't have this, so it's okay to allocate your own event structures.
It is really uncommon to have to create your own event structures, though; what is your program doing?
Federico
_______________________________________________
gtk-devel-list mailing list
gtk-devel-list gnome org http://mail.gnome.org/mailman/listinfo/gtk-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]