From gtk Sat Jul 10 01:44:44 1999 From: Havoc Pennington Date: Sat, 10 Jul 1999 01:44:44 +0000 To: gtk Subject: [gtk-list] Re: 2 Simple questions: X-MARC-Message: https://marc.info/?l=gtk&m=93157258024835 On Sat, 10 Jul 1999, Peter R. Brinkler wrote: > 1: Is there a simple way to check if a specific key (shift) is pressed > when I receive a mouse release event? > I have looked a lot of places for this, so I hope it's not in the > docs. > Look at http://pobox.com/~hp/gnome-app-devel.html, second sample chapter, it tells you about the members of the GdkEvent types. In this case I think you want the 'state' member: if ((event->state & GDK_SHIFT_MASK) != 0) { /* blah blah blah */ } Havoc -- To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null