On Tue, Apr 28, 2009 at 10:34 AM, Olivier Guilyardi <m...@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
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to