Package: gtk

Accessor gtk-widget-focus-on-click

Lambda List

gtk-widget-focus-on-click (object)

Syntax

(gtk-widget-focus-on-click object) => setting
(setf (gtk-widget-focus-on-click object) setting)

Arguments

object -- a gtk-widget object
setting -- a boolean whether the widget should grab focus

Details

Accessor of the focus-on-click slot of the gtk-widget class.

The gtk-widget-focus-on-click slot access function returns true if the widget should grab focus when it is clicked with the mouse. The (setf gtk-widget-focus-on-click) slot access function sets whether the widget should grab focus.

Making mouse clicks not grab focus is useful in places like toolbars where you do not want the keyboard focus removed from the main area of the application.

Since 3.20
 

See also

2021-9-15