diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-12-24 15:32:59 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-06-01 08:40:36 -0400 |
commit | 543cf3f907e0ed139d0eec3985ca3f5f0bdc9c83 (patch) | |
tree | ac89773f7a46518b4dcc28b51e848560c175fc4c /gtk/gtklistview.h | |
parent | e904668cb1c7f87c8e3da9bb86b7ae8b97064b59 (diff) | |
download | gtk+-columnview-search.tar.gz |
Add search supportcolumnview-search
Add a filter to GtkListBase, and move the selection
to the first matching item whenever the filter changes.
This is meant to be used with single selection and
a string filter that is hooked up to a search entry.
Diffstat (limited to 'gtk/gtklistview.h')
-rw-r--r-- | gtk/gtklistview.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gtk/gtklistview.h b/gtk/gtklistview.h index afcfb6225f..e2713b894c 100644 --- a/gtk/gtklistview.h +++ b/gtk/gtklistview.h @@ -25,6 +25,7 @@ #endif #include <gtk/gtklistbase.h> +#include <gtk/gtkfilter.h> G_BEGIN_DECLS @@ -81,6 +82,16 @@ void gtk_list_view_set_enable_rubberband (GtkListView GDK_AVAILABLE_IN_ALL gboolean gtk_list_view_get_enable_rubberband (GtkListView *self); +GDK_AVAILABLE_IN_ALL +void gtk_list_view_set_search_filter (GtkListView *self, + GtkFilter *filter); +GDK_AVAILABLE_IN_ALL +GtkFilter * gtk_list_view_get_search_filter (GtkListView *self); + +GDK_AVAILABLE_IN_ALL +void gtk_list_view_select_next_match (GtkListView *self, + gboolean forward); + G_END_DECLS #endif /* __GTK_LIST_VIEW_H__ */ |