Method GTK2.Window()->set_focus()
- Method
set_focus
GTK2.Window
set_focus(GTK2.Widget
child
)- Description
If child is not the current focus widget, and is focusable, sets it as the focus widget for the window. If child is 0, unsets the focus widget for this window. To set the focus to a particular widget in the toplevel, it is usually more convenient to use GTK2.Widget->grab_focus() instead of this function.