mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 11:41:56 +00:00
* Headers/AppKit/NSImageView.h,
* Source/NSImageView.m: Protect image drag with new ivar that gets set via a new GNUstep extension method. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34580 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
7da6d417a7
commit
62f2a5af94
3 changed files with 43 additions and 11 deletions
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/* -*-objc-*-
|
||||
NSImageView.h
|
||||
|
||||
Copyright (C) 1996 Free Software Foundation, Inc.
|
||||
|
@ -36,7 +36,11 @@
|
|||
{
|
||||
id _target;
|
||||
SEL _action;
|
||||
BOOL _allowsCutCopyPaste;
|
||||
struct GSImageViewFlagsType {
|
||||
// total 32 bits. 30 bits left.
|
||||
unsigned allowsCutCopyPaste: 1;
|
||||
unsigned initiatesDrag: 1;
|
||||
} _ivflags;
|
||||
}
|
||||
|
||||
- (NSImage *)image;
|
||||
|
@ -62,4 +66,13 @@
|
|||
|
||||
@end
|
||||
|
||||
#if OS_API_VERSION(GS_API_NONE, GS_API_NONE)
|
||||
//
|
||||
// Methods that are GNUstep extensions
|
||||
//
|
||||
@interface NSImageView (GNUstep)
|
||||
- (BOOL)initiatesDrag;
|
||||
- (void)setInitiatesDrag: (BOOL)flag;
|
||||
@end
|
||||
#endif
|
||||
#endif /* _GNUstep_H_NSImageView */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue