GtkWidget::is_focus

bool is_focus();

Returns whether or not the widget is the focus widget within its toplevel.

See also: child_focus() , grab_focus()