Extracted from Pike v7.8 release 866 at 2016-11-06.
pike.ida.liu.se
[Top]
GTK2
GTK2.Window

Method GTK2.Window()->set_default()


Method set_default

GTK2.Window set_default(GTK2.Widget child)

Description

The default widget is the widget that's activated when the user presses Enter in a dialog (for example). This function sets or unsets the default widget. When setting (rather than unsetting) the default widget it's generally easier to call GTK2.Widget->grab_focus() on the widget.