[linux-audio-dev] gtk scrollbars.

Paul Davis paul at linuxaudiosystems.com
Thu Sep 25 11:51:01 UTC 2003


>Using all the keys is a very simple way of making jackEQ truely useful 
>in live performance. It would add functionality to the mixer in ardour too.

we don't use regular GTK key bindings in ardour. everything is handled
via a custom system that avoids the GTK/Qt/X11 "focus" stupidity.

>The docs for range widgets say this:
>------------
>Scrollbars are not focusable, thus have no key bindings. The key 
>bindings for the other range widgets (which are, of course, only active 
>when the widget has focus) are do not differentiate between horizontal 
>and vertical range widgets.

gtk_widget_set_flags (scrollbar, GTK_CAN_FOCUS);
gtk_widget_set_events (scrollbar, GTK_KEY_PRESS_WHATEVER);

then attach handlers to key press/release events. i believe this will work.

but keep in mind that the focus model in GTK/Qt/X11 is likely to be your
enemy rather than your friend. 

--p



More information about the Linux-audio-dev mailing list