Method

GtkEntryset_activates_default

Declaration [src]

void
gtk_entry_set_activates_default (
  GtkEntry* entry,
  gboolean setting
)

Description [src]

If setting is TRUE, pressing Enter in the entry will activate the default widget for the window containing the entry. This usually means that the dialog box containing the entry will be closed, since the default widget is usually one of the dialog buttons.

(For experts: if setting is TRUE, the entry calls gtk_window_activate_default() on the window containing the entry, in the default handler for the GtkEntry::activate signal.).

Parameters

setting

Type: gboolean

TRUE to activate window’s default widget on Enter keypress.