summaryrefslogtreecommitdiff
path: root/gtk/gtklistview.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-12-24 15:32:59 -0500
committerMatthias Clasen <mclasen@redhat.com>2020-06-01 08:40:36 -0400
commit543cf3f907e0ed139d0eec3985ca3f5f0bdc9c83 (patch)
treeac89773f7a46518b4dcc28b51e848560c175fc4c /gtk/gtklistview.h
parente904668cb1c7f87c8e3da9bb86b7ae8b97064b59 (diff)
downloadgtk+-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.h11
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__ */