GtkButton::set_focus_on_click

void set_focus_on_click(bool focus_on_click);

Use this method to set the focus-on-click property to the value of the focus_on_click parameter. If it is true, the button grabs focus when it is clicked by the mouse.

See also: get_focus_on_click()