Expand description
Focus on the given widget.
Example:
extern crate gtk;
#[macro_use]
extern crate gtk_test;
use gtk::{Button, Inhibit, prelude::WidgetExt};
gtk::init().expect("GTK init failed");
let but = Button::new();
but.connect_focus(|_, _| {
println!("focused!");
Inhibit(false)
});
gtk_test::focus(&but);