[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Single letter accelerator and GtkEntry
- From: Tristan Van Berkom <tvb gnome org>
- To: Olivier Guilyardi <ml xung org>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Single letter accelerator and GtkEntry
- Date: Tue, 28 Apr 2009 11:27:42 -0400
On Tue, Apr 28, 2009 at 10:34 AM, Olivier Guilyardi <ml xung org> wrote:
> Hi,
>
> I'm working on an audio app. In my menu I have single letters accelerators such
> as Z or space, which are 100% needed for consistency with other audio
> applications around.
>
> These accelerators works. However, it isn't possible to enter the binded letters
> into a GtkEntry. Before I go and hack something... When the GtkEntry is focused,
> wouldn't there be a clean way to make it handle the keys and stop event propagation?
Copy this code ;-)
http://git.gnome.org/cgit/glade3/tree/gladeui/glade-utils.c :
glade_utils_hijack_key_press()
Cheers,
-Tristan
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]