Package: gtk

Accessor gtk:widget-focusable

Lambda List

gtk:widget-focusable (object)

Syntax

(gtk:widget-focusable object) => setting
(setf (gtk:widget-focusable object) setting)

Arguments

object -- a gtk:widget object
setting -- a boolean whether object itself will accept the input focus

Details

Accessor of the focusable slot of the gtk:widget class. The gtk:widget-focusable function determines whether the widget can own the input focus. The (setf gtk:widget-focusable) function specifies whether the widget can own the input focus.

Widget implementations should set the focusable property to true in their init function if they want to receive keyboard input. Note that having the focusable property be true is only one of the necessary conditions for being focusable. A widget must also have the sensitive and can-focus properties be true and not have an ancestor that has the can-focus property set to false in order to receive input focus. See the gtk:widget-grab-focus function for actually setting the input focus on a widget.
 

See also

2025-2-13