Re: Detecting Ctrl Esc in GTK app
- From: jcupitt gmail com
- To: Andrew Wood <a j w me com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Detecting Ctrl Esc in GTK app
- Date: Tue, 30 Aug 2011 15:50:05 +0100
On 30 August 2011 15:22, Andrew Wood <a j w me com> wrote:
How would you link it directly to the window then rather than to a widget?
You can link a GClosure to a key press with this:
http://developer.gnome.org/gtk3/stable/gtk3-Keyboard-Accelerators.html#gtk-accel-group-connect
Parse "<ctrl>esc" to key/mod with
gtk_accelerator_parse( "<ctrl>esc", &key, &mods );
(I've not actually done this, I always use a widget, but I think it should work)
John
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]