Package: gtk

Accessor gtk-button-focus-on-click

Lambda List

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

Syntax

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

Arguments

object -- a gtk-button widget
setting -- a boolean whether the button grabs focus when clicked with the mouse

Details

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

The gtk-button-focus-on-click slot access function returns whether the button grabs focus when it is clicked with the mouse. The (setf gtk-button-focus-on-click) slot access function sets whether the button will 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.

Warning

The gtk-button-focus-on-click function has been deprecated since version 3.20 and should not be used in newly written code. Use the gtk-widget-focus-on-click function instead.
 

See also

2021-12-4