mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
Get drag position right
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23854 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e439399f59
commit
4526afc00a
2 changed files with 8 additions and 4 deletions
|
@ -1,6 +1,11 @@
|
|||
2006-10-12 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSImageView.m: Fix error in initial drag position.
|
||||
|
||||
2006-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
|
||||
|
||||
* GNUmakefile (GNUSTEP_INSTALLATION_DOMAIN): Use GNUSTEP_INSTALLATION_DOMAIN
|
||||
* GNUmakefile (GNUSTEP_INSTALLATION_DOMAIN):
|
||||
Use GNUSTEP_INSTALLATION_DOMAIN
|
||||
instead of GNUSTEP_INSTALLATION_DIR.
|
||||
|
||||
2006-10-09 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
|
|
@ -153,8 +153,8 @@ static Class imageCellClass;
|
|||
|
||||
- (NSDragOperation) draggingEntered: (id <NSDraggingInfo>)sender
|
||||
{
|
||||
if (([sender draggingSource] != self) && ([self isEditable]) &&
|
||||
([NSImage canInitWithPasteboard: [sender draggingPasteboard]]))
|
||||
if (([sender draggingSource] != self) && ([self isEditable])
|
||||
&& ([NSImage canInitWithPasteboard: [sender draggingPasteboard]]))
|
||||
{
|
||||
[_cell setHighlighted: YES];
|
||||
return NSDragOperationCopy;
|
||||
|
@ -226,7 +226,6 @@ static Class imageCellClass;
|
|||
// Center the image on the mouse position ... is this right?
|
||||
s = [anImage size];
|
||||
p = [theEvent locationInWindow];
|
||||
p = [self convertPoint: p fromView: nil];
|
||||
p.x -= s.width/2;
|
||||
p.y -= s.width/2;
|
||||
[_window dragImage: anImage
|
||||
|
|
Loading…
Reference in a new issue