diff options
author | Kristian Rietveld <kris@gtk.org> | 2006-01-24 10:49:29 +0000 |
---|---|---|
committer | Kristian Rietveld <kristian@src.gnome.org> | 2006-01-24 10:49:29 +0000 |
commit | 58e77fe25bde289f178153a8a01e62d8b2e8093b (patch) | |
tree | 71ba038287f62706864023a51bc661f431fd2544 /gtk/gtktreeview.h | |
parent | 4c4ee382568f677b918fea8737f0d30dd69d61a2 (diff) | |
download | gtk+-58e77fe25bde289f178153a8a01e62d8b2e8093b.tar.gz |
#322591, Jonathan Blandford.
2006-01-24 Kristian Rietveld <kris@gtk.org>
#322591, Jonathan Blandford.
* gtk/gtktreeview.[ch] (gtk_tree_view_get_search_entry),
(gtk_tree_view_set_search_entry),
(gtk_tree_view_get_search_position_func),
(gtk_tree_view_set_search_position_func): New functions,
and small adaptions to the tree view code to allow for setting
the entry and search position function.
* gtk/gtktreeprivate.h: Removed GtkTreeViewSearchDialogPositionFunc
typedef, which is now in gtktreeview.h as
GtkTreeViewSearchPositionFunc. Add/update fields.
* gtk/gtk.symbols: Add new functions.
* tests/testtreesort.c: Add a little test for _set_search_entry().
Diffstat (limited to 'gtk/gtktreeview.h')
-rw-r--r-- | gtk/gtktreeview.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gtk/gtktreeview.h b/gtk/gtktreeview.h index 609ce6f676..76174f25d8 100644 --- a/gtk/gtktreeview.h +++ b/gtk/gtktreeview.h @@ -24,6 +24,7 @@ #include <gtk/gtktreemodel.h> #include <gtk/gtktreeviewcolumn.h> #include <gtk/gtkdnd.h> +#include <gtk/gtkentry.h> G_BEGIN_DECLS @@ -127,6 +128,9 @@ typedef gboolean (*GtkTreeViewSearchEqualFunc) (GtkTreeModel *model, typedef gboolean (*GtkTreeViewRowSeparatorFunc) (GtkTreeModel *model, GtkTreeIter *iter, gpointer data); +typedef void (*GtkTreeViewSearchPositionFunc) (GtkTreeView *tree_view, + GtkWidget *search_dialog, + gpointer user_data); /* Creators */ @@ -309,6 +313,15 @@ void gtk_tree_view_set_search_equal_func (GtkTreeView gpointer search_user_data, GtkDestroyNotify search_destroy); +GtkEntry *gtk_tree_view_get_search_entry (GtkTreeView *tree_view); +void gtk_tree_view_set_search_entry (GtkTreeView *tree_view, + GtkEntry *entry); +GtkTreeViewSearchPositionFunc gtk_tree_view_get_search_position_func (GtkTreeView *tree_view); +void gtk_tree_view_set_search_position_func (GtkTreeView *tree_view, + GtkTreeViewSearchPositionFunc func, + gpointer data, + GDestroyNotify destroy); + /* This function should really never be used. It is just for use by ATK. */ typedef void (* GtkTreeDestroyCountFunc) (GtkTreeView *tree_view, |