Mouse position with key event (fwd)
- From: Vlad Harchev <hvv hippo ru>
- To: gtk-devel-list gnome org
- Subject: Mouse position with key event (fwd)
- Date: Mon, 6 Nov 2000 19:01:53 +0400 (SAMT)
Sorry, I cc'd this to gtk-list-devel@ instead of gtk-devel-list So I'm
forwarding this manually.
Best regards,
-Vlad
---------- Forwarded message ----------
Date: Mon, 6 Nov 2000 18:53:30 +0400 (SAMT)
From: Vlad Harchev <hvv hippo ru>
To: gtk-list gnome org
Cc: gtk-list-devel gnome org, Jon Cook <cookj cs man ac uk>
Subject: Re: Mouse position with key event
On 6 Nov 2000, Owen Taylor wrote:
Hi,
>
> Jon Cook <cookj cs man ac uk> writes:
>
> > Hi,
> >
> > Unlike its X equivalent, the GdkEventKey data structure does not
> > contain the position of the mouse when the key press/release event
> > occurred. Is there any way of getting this information.
>
> Not really, sorry. You can use gdk_window_add_filter() to get
> direct access to the X event.
>
> Alternatively, you can use gdk_window_get_pointer() when you receive
> the event and assume that is close enough.
Why can't we add these fields to GdkEventKey in gtk-2.0? Why these fields
were not there in the gtk-1.x?
Speaking about GdkEventKey, I proposed (in August on gtk-devel-list) addition
of 2 more fields to it to aid i18n of it, so now it can be right time to think
about extending GdkEventKey.
> Regards,
> Owen
>
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list
>
Best regards,
-Vlad
_______________________________________________
gtk-list mailing list
gtk-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]