diff options
author | Jonathan Blandford <jrb@redhat.com> | 2001-06-08 22:59:37 +0000 |
---|---|---|
committer | Jonathan Blandford <jrb@src.gnome.org> | 2001-06-08 22:59:37 +0000 |
commit | f92ccfc08c6a098f06355003a393921d7cd7299b (patch) | |
tree | 099e44e938e778ace4ebafb3436c71c4911ba2eb /gtk/gtktreeview.h | |
parent | 30d3e85d96550d9cc305757673b5a37948ad44c2 (diff) | |
download | gtk+-f92ccfc08c6a098f06355003a393921d7cd7299b.tar.gz |
new function to clean up cursor handling.
Fri Jun 8 18:41:30 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_set_cursor): new function to
clean up cursor handling.
Pretty much nailed single selection motion, and multi-selection
focus minus the fact that the anchor isn't quite right.
Diffstat (limited to 'gtk/gtktreeview.h')
-rw-r--r-- | gtk/gtktreeview.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/gtk/gtktreeview.h b/gtk/gtktreeview.h index d6f827fbf9..bcf0d5f28b 100644 --- a/gtk/gtktreeview.h +++ b/gtk/gtktreeview.h @@ -79,11 +79,13 @@ struct _GtkTreeViewClass void (* columns_changed) (GtkTreeView *tree_view); /* Key Binding signals */ + void (* begin_extended_selection) (GtkTreeView *tree_view); + void (* end_extended_selection) (GtkTreeView *tree_view); + void (* begin_free_motion) (GtkTreeView *tree_view); + void (* end_free_motion) (GtkTreeView *tree_view); void (* move_cursor) (GtkTreeView *tree_view, GtkMovementStep step, - gint count, - gboolean extend_selection); - void (* set_anchor) (GtkTreeView *tree_view); + gint count); void (* toggle_cursor_row) (GtkTreeView *tree_view); void (* expand_collapse_cursor_row) (GtkTreeView *tree_view, gboolean logical, @@ -196,6 +198,8 @@ void gtk_tree_view_map_expanded_rows (GtkTreeView gpointer data); void gtk_tree_view_set_reorderable (GtkTreeView *tree_view, gboolean reorderable); +void gtk_tree_view_set_cursor (GtkTreeView *tree_view, + GtkTreePath *path); /* Layout information */ |