GTK+2.2 and Key Bindings



I'm making a small app that floats on the desktop with an input box, and I'd like to make it possible that when you press CTRL+F12, no matter where you are at, it will give this window focus, highlight everything, and let you type. What I can't figure out is if it's possible to make that kind of a keyboard shortcut using GTK+ or if I'd have to tie into the X windows system directly to capture the keypress or if I'd have to tie into the WM (in which case I may drop the idea unless there's a standard way to do this).

I guess what I'm looking for is the gtk equivlent of the Win32API call RegisterHotkey()

Thanks,

--
http://kicken.mine.nu:8008/  - Personal Site
http://wiser.kicks-ass.org:8008/  - Long-term Project
Keith Maika




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