Re: DND event->y for dropping on clist



On 20 Nov 1998, Owen Taylor wrote:

> The translation isn't completely trivial - the following
> code should work.
> 
>  gint ty;
> 
>  gdk_window_get_position (GTK_CLIST(clist)->clist_window, 0, &ty);
>  y_coord = y - ty - GTK_CONTAINER (clist)->border_width;
>  
> > Should I activate a different drop target for dropping on clist?
> 
> It would be nice to have code in GtkCList/CTree for activatingg
> dropping/dragging from particular rows. Nothing like that
> exists yet, though there are plans to work on it.

This comes back to one of the things I'd like to see: full drop-awareness
for all the widgets (menus, lists, ctrees, etc.)

In the short run, however, some callback to allow the drop target to add
"widget specific coordinates" to the drag'n'drop proceeding might be
feasible. 

-- 
Kenneth Albanowski (kjahds@kjahds.com, CIS: 70705,126)




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