Re: Treeview/Drag n' drog pre-lighting



On Sat, 2004-04-03 at 12:54 +0100, Lee Willis wrote:

> Is there any way to get pre-lighting of particular rows in a treeview
> when hovering a drag 'n drop over the Treeview reflecting which row will
> be the drop target?
> 
> >From everything I've found through the API docs, and google, this isn't
> possible, and it isn't mentioned on the plans for 2.6 at http://www.gtk.
> org/plan/2.6/.

For the sake of the archives, and hence anyone else trying to work this
out, the solution I was looking for was to connect to the drag-motion
event, and then call the following:

gtk_tree_view_get_path_at_pos ()
and then 
gtk_tree_view_set_drag_dest_row ()

Hope that helps someone else!

Lee








[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]