Re: Keeping state with key press and key release events

2012-03-19 Thread Christopher Howard
On 03/19/2012 06:54 PM, Arvind Kumar wrote: > I am not on the list but saw your message and read the thread. > >> However, the approach I was hoping for, i.e. simply checking the >> current "reality" state of a key (whether it is actually pressed down >> or not) sounds more convenient. If anyone c

Re: key press events & holding keys down

2012-03-19 Thread Chris Vine
On Mon, 19 Mar 2012 13:37:45 -0800 Christopher Howard wrote: [snip] > So, you mean, receive both key press and key release events, and then > maintain my own tracking of whether or not the key is currently being > held down? Okay, that makes sense to me, provided of course I can be > certain that

Re: key press events & holding keys down

2012-03-19 Thread Christopher Howard
On 03/19/2012 12:49 PM, Chris Vine wrote: > On Mon, 19 Mar 2012 20:35:33 +0100 > David Nečas wrote: >> On Mon, Mar 19, 2012 at 07:25:22PM +, Chris Vine wrote: >>> Are you saying that on your hardware, holding one key down blocks >>> press and release events for all other keys? I am not saying

Re: key press events & holding keys down

2012-03-19 Thread Chris Vine
On Mon, 19 Mar 2012 20:35:33 +0100 David Nečas wrote: > On Mon, Mar 19, 2012 at 07:25:22PM +, Chris Vine wrote: > > Are you saying that on your hardware, holding one key down blocks > > press and release events for all other keys? I am not saying you > > are wrong, but I find that surprising.

Re: key press events & holding keys down

2012-03-19 Thread David Nečas
On Mon, Mar 19, 2012 at 07:25:22PM +, Chris Vine wrote: > Are you saying that on your hardware, holding one key down blocks press > and release events for all other keys? I am not saying you are > wrong, but I find that surprising. IMO Christopher observes this: 1) press A 2) press B while st

Re: key press events & holding keys down

2012-03-19 Thread Chris Vine
On Mon, 19 Mar 2012 11:13:14 -0800 Christopher Howard wrote: > On 03/19/2012 11:02 AM, Chris Vine wrote: > > On Mon, 19 Mar 2012 09:21:27 -0800 > > Christopher Howard wrote: > >> On 03/19/2012 03:34 AM, Chris Vine wrote: > >>> Since GtkWidget objects have key-press-event and a > >>> key-release-

Re: key press events & holding keys down

2012-03-19 Thread Chris Vine
On Mon, 19 Mar 2012 09:21:27 -0800 Christopher Howard wrote: > On 03/19/2012 03:34 AM, Chris Vine wrote: > > Since GtkWidget objects have key-press-event and a key-release-event > > signals that you can connect to (and from your explanation, clearly > > you have connected to), you will probably ne

Re: key press events & holding keys down

2012-03-19 Thread Christopher Howard
On 03/19/2012 11:02 AM, Chris Vine wrote: > On Mon, 19 Mar 2012 09:21:27 -0800 > Christopher Howard wrote: >> On 03/19/2012 03:34 AM, Chris Vine wrote: >>> Since GtkWidget objects have key-press-event and a key-release-event >>> signals that you can connect to (and from your explanation, clearly >

Re: key press events & holding keys down

2012-03-19 Thread Christopher Howard
On 03/19/2012 03:34 AM, Chris Vine wrote: > > Since GtkWidget objects have key-press-event and a key-release-event > signals that you can connect to (and from your explanation, clearly you > have connected to), you will probably need to explain why these don't do > what you want in order to get a

Re: key press events & holding keys down

2012-03-19 Thread Chris Vine
On Sun, 18 Mar 2012 20:08:12 -0800 Christopher Howard wrote: > On 03/16/2012 04:29 PM, Christopher Howard wrote: > > > > I control the spacecraft with the arrow keys, which I do by > > grabbing the GdkEventKey and then checking it against GDK_KEY_Left, > > GDK_KEY_Right, and so forth. Strictly sp

Menu translation including context

2012-03-19 Thread Andreas Rönnquist
Hi! I have a problem with translations and gtk/glib - I have made a complete program translated, and include a menu based on gtk_action_group, and use gtk_action_group_set_translation_domain gtk_action_group_add_actions to set up the translation - this works just fine if I use "N_(" in the stri