diff options
author | Jonathan Blandford <jrb@redhat.com> | 2001-08-17 23:35:52 +0000 |
---|---|---|
committer | Jonathan Blandford <jrb@src.gnome.org> | 2001-08-17 23:35:52 +0000 |
commit | ac1e4ef3d26343eb7480ef86af3420146466fec1 (patch) | |
tree | 056b307b026f31d3fe909775cf7e78c3d63647a3 /gtk/gtktreeview.h | |
parent | ad9d2daf4a3156ed3a828e7547d383c0d7dbce75 (diff) | |
download | gdk-pixbuf-ac1e4ef3d26343eb7480ef86af3420146466fec1.tar.gz |
Add heavily modified patch from Kristian Rietveld to handle interactive
Fri Aug 17 19:30:14 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeprivate.h:
* gtk/gtktreeview.c: (gtk_tree_view_class_init),
(gtk_tree_view_init), (gtk_tree_view_set_property),
(gtk_tree_view_get_property), (gtk_tree_view_destroy),
(gtk_tree_view_key_press), (gtk_tree_view_leave_notify),
(gtk_tree_view_focus_out), (gtk_tree_view_set_model),
(gtk_tree_view_set_destroy_count_func),
(gtk_tree_view_set_enable_search),
(gtk_tree_view_get_enable_search),
(gtk_tree_view_get_search_column),
(gtk_tree_view_set_search_column),
(gtk_tree_view_get_search_equal_func),
(gtk_tree_view_set_search_equal_func),
(gtk_tree_view_search_dialog_destroy),
(gtk_tree_view_search_position_func),
(gtk_tree_view_interactive_search),
(gtk_tree_view_search_delete_event),
(gtk_tree_view_search_button_press_event),
(gtk_tree_view_search_key_press_event),
(gtk_tree_view_search_move), (gtk_tree_view_search_equal_func),
(gtk_tree_view_search_iter), (gtk_tree_view_search_init):
* gtk/gtktreeview.h:
Add heavily modified patch from Kristian Rietveld to handle
interactive searching.
Diffstat (limited to 'gtk/gtktreeview.h')
-rw-r--r-- | gtk/gtktreeview.h | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/gtk/gtktreeview.h b/gtk/gtktreeview.h index cee0a1e28..f0412a84f 100644 --- a/gtk/gtktreeview.h +++ b/gtk/gtktreeview.h @@ -19,6 +19,7 @@ #ifndef __GTK_TREE_VIEW_H__ #define __GTK_TREE_VIEW_H__ +#include <gtk/gtkwidget.h> #include <gtk/gtkcontainer.h> #include <gtk/gtktreemodel.h> #include <gtk/gtktreeviewcolumn.h> @@ -119,6 +120,10 @@ typedef gboolean (* GtkTreeViewDroppableFunc) (GtkTreeView *tree_vi GtkTreePath *path, GtkTreeViewDropPosition *pos, gpointer user_data); +typedef gboolean (*GtkTreeViewSearchEqualFunc) (GtkTreeModel *model, + gint column, + gchar *key, + GtkTreeIter *iter); /* Creators */ @@ -275,13 +280,25 @@ gboolean gtk_tree_view_get_dest_row_at_pos (GtkTreeView GdkPixmap *gtk_tree_view_create_row_drag_icon (GtkTreeView *tree_view, GtkTreePath *path); +/* Interactive search */ +void gtk_tree_view_set_enable_search (GtkTreeView *tree_view, + gboolean use_search); +gboolean gtk_tree_view_get_enable_search (GtkTreeView *tree_view); +gint gtk_tree_view_get_search_column (GtkTreeView *tree_view); +void gtk_tree_view_set_search_column (GtkTreeView *tree_view, + gint column); +GtkTreeViewSearchEqualFunc gtk_tree_view_get_search_equal_func (GtkTreeView *tree_view); +void gtk_tree_view_set_search_equal_func (GtkTreeView *tree_view, + GtkTreeViewSearchEqualFunc search_compare_func, + gpointer search_data, + GtkDestroyNotify search_destroy); /* This function should really never be used. It is just for use by ATK. */ -typedef void (* GtkTreeDestroyCountFunc) (GtkTreeView *tree_view, - GtkTreePath *path, - gint children, - gpointer user_data); +typedef void (* GtkTreeDestroyCountFunc) (GtkTreeView *tree_view, + GtkTreePath *path, + gint children, + gpointer user_data); void gtk_tree_view_set_destroy_count_func (GtkTreeView *tree_view, GtkTreeDestroyCountFunc func, gpointer data, |