Re: Do something clever on a keypress with Gtk2-0.92?



-- Tom Cross <tomc kendeco com> wrote
(on Thursday, 07 August 2003, 04:42 PM -0500):
You might try ItemFactory -- you could build the menu with the callbacks
and accelgroup, hook it up to the window, but simply not display it. I
recently created something similar, and it should work. Email me if you
want an example.

I thought about that but it appears to be more work than just looking
for keypress events.  Also, how do you trap something like "F10"?

Use 'F10' as the accelerator... ;-) 

Thanks for the idea though!!

-- 
Matthew Weier O'Phinney
http://weierophinney.net/matthew/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]