add GtkTreeRowReference which holds a handle to a specific row (particular
2001-01-26 Havoc Pennington <hp@redhat.com> * gtk/gtktreemodel.c, gtk/gtktreemodel.h: add GtkTreeRowReference which holds a handle to a specific row (particular set of values in the model, i.e. pointer-identity row). * gtk/gtktreeview.c, gtk/gtktreeprivate.h, gtk/gtktreeselection.c: use GtkTreeRowReference for anchor, cursor, and drag_dest_row. Still need to use it for the src/dest row saved on the drag context.
This commit is contained in:
committed by
Havoc Pennington
parent
ef4356b567
commit
d8d019a1e9
@ -72,8 +72,8 @@ struct _GtkTreeViewPrivate
|
||||
gint expander_column;
|
||||
|
||||
/* Selection stuff */
|
||||
GtkTreePath *anchor;
|
||||
GtkTreePath *cursor;
|
||||
GtkTreeRowReference *anchor;
|
||||
GtkTreeRowReference *cursor;
|
||||
|
||||
/* Column Resizing */
|
||||
GdkCursor *cursor_drag;
|
||||
@ -97,7 +97,7 @@ struct _GtkTreeViewPrivate
|
||||
guint scroll_timeout;
|
||||
|
||||
/* Row drag-and-drop */
|
||||
GtkTreePath *drag_dest_row;
|
||||
GtkTreeRowReference *drag_dest_row;
|
||||
GtkTreeViewDropPosition drag_dest_pos;
|
||||
guint open_dest_timeout;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user