Re: [gtk-list] Re: mouse location for drag-begin
- From: Todd Dukes <tdukes ibmoto com>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Re: mouse location for drag-begin
- Date: Tue, 05 Jan 1999 10:09:25 -0600
Federico Mena Quintero wrote:
> > Is there an easy way to get the x, y coordinates
> > of a drag begin. The only way I see by browsing the
> > dnd-api.txt file that Owen wrote is to maybe keep
> > track of the latest mouse press location and use that
> > if you detect a drag.
> > I have a ctree and a clist. You can drag the selection of
> > the ctree to the clist. I want to be able to use the row
> > under the mouse if there is no selection.
> > I could set the ctree as a destination and use the drag_motion
> > event. Would that be inadvisable?
> What we do in Gmc is to save the mouse position upon receiving a
> button_press_event. Then you use that value from the DnD handlers.
> To unsubscribe: mail -s unsubscribe firstname.lastname@example.org < /dev/null
This is what I wound up doing also. I just wanted to make sure there
was not a cleaner way.
| Todd Dukes E-MAIL: email@example.com |
| Motorola Somerset Phone: (512) 424-8008 |
| MS OE70 |
| 6300 Bridgepoint Parkway Building #3 |
| Austin, Texas 78730 |
] [Thread Prev