That lets you detect ctrl-esc anywhere on the desktop. If you only
need to detect crtl-ecs within your window you can just set
ControlEscape as an accelerator, see:
http://developer.gnome.org/gtk3/stable/gtk3-Keyboard-Accelerators.html
On 30 August 2011 06:33, czk czon...@gmail.com wrote:
try
Thanks for the tip. Can accelerators only be used with menu items, only
Ive just tried doing it by linking it to the clicked signal on a
(hidden) GtkButton but it doesnt work?
My idea was when the key combo was pressed the accelerator would emit a
clicked signal on the button and the buttons
Hi Andrew,
You can add an accelerator to a window and it'll be called when that
key combination is pressed. It doesn't need to be associated with a
widget.
However I think it's generally considered good form to have a menu
item somewhere with the accelerator as a shortcut. That way the user
can
How would you link it directly to the window then rather than to a widget?
As far as I can see you need to associate it with a signal, but looking
down the list of signals for windows I cant really see one suitable,
hence I was using this:
On 30 August 2011 15:22, Andrew Wood a@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 ctrlesc to
On 30 August 2011 16:50, jcup...@gmail.com wrote:
On 30 August 2011 15:22, Andrew Wood a@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:
Thanks John thats solved that one. Now onto the next issue to do with
the window type for which I will start a new thread
On 30/08/11 15:50, jcup...@gmail.com wrote:
On 30 August 2011 15:22, Andrew Wooda@me.com wrote:
How would you link it directly to the window then rather than to a
Is there a way to regiser a handler function which will be called
whenever the user presses Ctrl-Esc in a GTK app?
Thanks
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
try gdk_window_add_filter or gtk_key_snooper_install
2011/8/30 Andrew Wood a@me.com
Is there a way to regiser a handler function which will be called whenever
the user presses Ctrl-Esc in a GTK app?
Thanks
__**_
gtk-app-devel-list mailing