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

The accessor for the focus-on-click slot gets or sets whether the button grabs focus when it is clicked with the mouse. 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

This 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

2026-06-21