set_activates_default


Description:

public void set_activates_default (bool activates)

If activates is true, pressing Enter will activate the default widget for the window containing this.

This usually means that the dialog containing the `GtkText` will be closed, since the default widget is usually one of the dialog buttons.

Parameters:

this

a `GtkText`

activates

true to activate window’s default widget on Enter keypress