GtkSearchEntry

A text entry with search functionality.

Preview

CSS Node Tree

entry.search
  ├── image (search icon, left)
  ├── text
  └── image (clear icon, right)

Props

Prop

Type

Keyboard

  • Enter — fires onActivate
  • Escape — fires onStopSearch (and hides a surrounding GtkSearchBar)
  • Ctrl+G (⌘G on macOS) — fires onNextMatch
  • Ctrl+Shift+G (⇧⌘G on macOS) — fires onPreviousMatch

Emptying the entry fires onSearchChanged("") at once; other changes wait searchDelay ms. The clear icon empties it through onChanged.

GTK4 Documentation →

On this page