From: Kevin Ryde <user42@zip.com.au>
To: guile-gtk@sources.redhat.com
Subject: gdk-event accessors
Date: Tue, 05 Aug 2003 00:35:00 -0000 [thread overview]
Message-ID: <874r0x2b71.fsf@zip.com.au> (raw)
[-- Attachment #1: Type: text/plain, Size: 270 bytes --]
FYI, a couple of missing gdkevent field accessor cases,
* gdk-support.c (gdk_event_deviceid): Use proximity.deviceid.
(gdk_event_source): Use proximity.source.
(gdk_event_state): Use crossing.state.
(gdk_event_time): Use crossing.time.
[-- Attachment #2: gdk-support.c.event-accessors.diff --]
[-- Type: text/plain, Size: 1218 bytes --]
--- gdk-support.c.~1.29.~ 2003-08-05 10:20:39.000000000 +1000
+++ gdk-support.c 2003-08-05 10:32:59.000000000 +1000
@@ -299,6 +299,9 @@
case GDK_BUTTON_PRESS:
case GDK_BUTTON_RELEASE:
return event->button.time;
+ case GDK_ENTER_NOTIFY:
+ case GDK_LEAVE_NOTIFY:
+ return event->crossing.time;
case GDK_KEY_PRESS:
case GDK_KEY_RELEASE:
return event->key.time;
@@ -428,6 +431,9 @@
case GDK_BUTTON_PRESS:
case GDK_BUTTON_RELEASE:
return event->button.state;
+ case GDK_ENTER_NOTIFY:
+ case GDK_LEAVE_NOTIFY:
+ return event->crossing.state;
case GDK_KEY_PRESS:
case GDK_KEY_RELEASE:
return event->key.state;
@@ -458,6 +464,9 @@
case GDK_BUTTON_PRESS:
case GDK_BUTTON_RELEASE:
return event->button.source;
+ case GDK_PROXIMITY_IN:
+ case GDK_PROXIMITY_OUT:
+ return event->proximity.source;
default:
return GDK_SOURCE_MOUSE; /* XXX */
}
@@ -474,6 +483,9 @@
case GDK_BUTTON_PRESS:
case GDK_BUTTON_RELEASE:
return event->button.deviceid;
+ case GDK_PROXIMITY_IN:
+ case GDK_PROXIMITY_OUT:
+ return event->proximity.deviceid;
default:
return 0;
}
reply other threads:[~2003-08-05 0:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874r0x2b71.fsf@zip.com.au \
--to=user42@zip.com.au \
--cc=guile-gtk@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).