Package: gtk
Class gtk:search-bar
Superclassesgtk:bin, gtk:container, gtk:widget, gtk:buildable, gobject:object, common-lisp:standard-object, common-lisp:t Documented Subclasses
None
Direct SlotsDetails The gtk:search-bar widget is a container made to have a search entry
built-in, possibly with additional connex widgets, such as drop-down menus,
or buttons.
The search bar would appear when a search is started through typing on the
keyboard, or the application’s search mode is toggled on. ![]() For keyboard presses to start a search, events will need to be forwarded from the toplevel window that contains the search bar. See the gtk:search-bar-handle-event function for example code. Common shortcuts such as the Ctrl+F key should be handled as an application action, or through the menu items. You will also need to tell the search bar about which entry you are using as your search entry using the gtk:search-bar-connect-entry function. The following example shows you how to create a more complex search entry. CSS nodesExamples#include <gtk/gtk.h> | Returned bySlot Access FunctionsInherited Slot Access Functions |
#2023-2-16