GtkWindow::set_focus_on_map

void set_focus_on_map(bool focus_on_map);

Sets whether or not the window manager should give the window focus when the window is mapped. If focus_on_map is true, the window should receive focus when it is mapped.

The default value is true.

See also: get_focus_on_map()