Widget.focusOnClick

Get focusOnClick property.

  1. bool focusOnClick [@property getter]
    class Widget
    @property
    bool
    focusOnClick
    ()
  2. bool focusOnClick [@property setter]

Return Value

Type: bool

Whether the widget should grab focus when it is clicked with the mouse.

This property is only relevant for widgets that can take focus.

Before 3.20, several widgets (GtkButton, GtkFileChooserButton, GtkComboBox) implemented this property individually.