Method

GtkButtonset_focus_on_click

deprecated: 3.20 since: 2.4

Declaration [src]

void
gtk_button_set_focus_on_click (
  GtkButton* button,
  gboolean focus_on_click
)

Description [src]

Sets whether the button will grab focus when it is clicked with the mouse. Making mouse clicks not grab focus is useful in places like toolbars where you don’t want the keyboard focus removed from the main area of the application.

Available since: 2.4

Deprecated since: 3.20

Use gtk_widget_set_focus_on_click() instead.

Parameters

focus_on_click

Type: gboolean

Whether the button grabs focus when clicked with the mouse.