Property

GtkWidget:focus-on-click

since: 3.20

Declaration

property focus-on-click: gboolean [ read, write ]

Description [src]

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.

Type:gboolean

Available since: 3.20

Default valueTRUE
Getter methodgtk_widget_get_focus_on_click()
Setter methodgtk_widget_set_focus_on_click()

Flags

Readableyes
Writableyes
Constructno
Construct onlyno