Top | Description | Object Hierarchy | Implemented Interfaces | Signals | ![]() |
![]() |
![]() |
![]() |
GtkSearchEntry implements AtkImplementorIface, GtkBuildable, GtkEditable and GtkCellEditable.
GtkSearchEntry is a subclass of GtkEntry that has been tailored for use as a search entry.
It will show an inactive symbolic "find" icon when the search entry is empty, and a symbolic "clear" icon when there is text. Clicking on the "clear" icon will empty the search entry.
Note that the search/clear icon is shown using a secondary icon, and thus does not work if you are using the secondary icon position for some other purpose.
To make filtering appear more reactive, it is a good idea to not react to every change in the entry text immediately, but only after a short delay. To support this, GtkSearchEntry emits the "search-changed" signal which can be used instead of the "changed" signal.
GtkWidget * gtk_search_entry_new (void
);
Creates a GtkSearchEntry, with a find icon when the search field is empty, and a clear icon when it isn't.
Returns : |
a new GtkSearchEntry |
Since 3.6
"search-changed"
signalvoid user_function (GtkSearchEntry *entry,
gpointer user_data) : Run Last
The "search-changed" signal is emitted with a short delay of 150 milliseconds after the last change to the entry text.
|
the entry on which the signal was emitted |
|
user data set when the signal handler was connected. |
Since 3.10