mirror of
https://github.com/gnustep/libs-back.git
synced 2025-02-23 11:51:27 +00:00
* Source/x11/XGDragView.m (GSActionForDragOperation,
GSDragOperationForAction): Corrected drag type conversion. Patch by Andreas Schick <andreas.schik@googlemail.com> git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@33829 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
ea5cc1646e
commit
bc7f059583
2 changed files with 11 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
2011-09-12 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/x11/XGDragView.m (GSActionForDragOperation,
|
||||
GSDragOperationForAction): Corrected drag type conversion.
|
||||
Patch by Andreas Schick <andreas.schik@googlemail.com>
|
||||
|
||||
2011-09-11 Eric Wasylishen <ewasylishen@gmail.com>
|
||||
|
||||
* Source/cairo/CairoGState.m (-drawGState:...): Check that the source
|
||||
|
|
|
@ -95,7 +95,10 @@ Atom
|
|||
GSActionForDragOperation(unsigned int op)
|
||||
{
|
||||
Atom xaction;
|
||||
if (op == NSDragOperationAll)
|
||||
|
||||
if (op == NSDragOperationEvery)
|
||||
xaction = dnd.XdndActionAsk;
|
||||
else if (op == NSDragOperationAll)
|
||||
xaction = dnd.XdndActionAsk;
|
||||
else if (op & NSDragOperationCopy)
|
||||
xaction = dnd.XdndActionCopy;
|
||||
|
@ -124,7 +127,7 @@ GSDragOperationForAction(Atom xaction)
|
|||
else if (xaction == dnd.XdndActionLink)
|
||||
action = NSDragOperationLink;
|
||||
else if (xaction == dnd.XdndActionAsk)
|
||||
action = NSDragOperationAll;
|
||||
action = NSDragOperationEvery;
|
||||
else if (xaction == dnd.XdndActionPrivate)
|
||||
action = NSDragOperationPrivate;
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue