mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 12:00:52 +00:00
Fix to properly return YES or NO in BOOL accessors
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22412 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b9f1bdd4f0
commit
98bc434e88
2 changed files with 19 additions and 17 deletions
|
@ -7,6 +7,8 @@
|
|||
Send did hide and did unhide notifications to the workspace center
|
||||
so the workspace manager knows about them.
|
||||
Honor the NSWindow-canHide method when deactivating apps.
|
||||
* Source/NSWindow.m: Fix accessor methods which return a BOOL to
|
||||
do the right thing when they are accessing a bit in a bitfield.
|
||||
|
||||
2006-02-01 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
|
|
|
@ -1103,7 +1103,7 @@ many times.
|
|||
|
||||
- (BOOL) hasShadow
|
||||
{
|
||||
return _f.has_shadow;
|
||||
return (_f.has_shadow ? YES : NO);
|
||||
}
|
||||
|
||||
- (void) setAlphaValue: (float)windowAlpha
|
||||
|
@ -1128,7 +1128,7 @@ many times.
|
|||
|
||||
- (BOOL) isOpaque
|
||||
{
|
||||
return _f.is_opaque;
|
||||
return (_f.is_opaque ? YES : NO);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -1153,7 +1153,7 @@ many times.
|
|||
|
||||
- (BOOL) isOneShot
|
||||
{
|
||||
return _f.is_one_shot;
|
||||
return (_f.is_one_shot ? YES : NO);
|
||||
}
|
||||
|
||||
- (void) setBackingType: (NSBackingStoreType)type
|
||||
|
@ -1363,7 +1363,7 @@ many times.
|
|||
|
||||
- (BOOL) hidesOnDeactivate
|
||||
{
|
||||
return _f.hides_on_deactivate;
|
||||
return (_f.hides_on_deactivate ? YES : NO);
|
||||
}
|
||||
|
||||
- (void) setCanHide: (BOOL)flag
|
||||
|
@ -1373,27 +1373,27 @@ many times.
|
|||
|
||||
- (BOOL) canHide
|
||||
{
|
||||
return _f.can_hide;
|
||||
return (_f.can_hide ? YES : NO);
|
||||
}
|
||||
|
||||
- (BOOL) isKeyWindow
|
||||
{
|
||||
return _f.is_key;
|
||||
return (_f.is_key ? YES : NO);
|
||||
}
|
||||
|
||||
- (BOOL) isMainWindow
|
||||
{
|
||||
return _f.is_main;
|
||||
return (_f.is_main ? YES : NO);
|
||||
}
|
||||
|
||||
- (BOOL) isMiniaturized
|
||||
{
|
||||
return _f.is_miniaturized;
|
||||
return (_f.is_miniaturized ? YES : NO);
|
||||
}
|
||||
|
||||
- (BOOL) isVisible
|
||||
{
|
||||
return _f.visible;
|
||||
return (_f.visible ? YES : NO);
|
||||
}
|
||||
|
||||
- (int) level
|
||||
|
@ -2112,7 +2112,7 @@ many times.
|
|||
|
||||
- (BOOL) isAutodisplay
|
||||
{
|
||||
return _f.is_autodisplay;
|
||||
return (_f.is_autodisplay ? YES : NO);
|
||||
}
|
||||
|
||||
- (BOOL) isFlushWindowDisabled
|
||||
|
@ -2140,7 +2140,7 @@ many times.
|
|||
|
||||
- (BOOL) viewsNeedDisplay
|
||||
{
|
||||
return _rFlags.needs_display;
|
||||
return (_rFlags.needs_display ? YES : NO);
|
||||
}
|
||||
|
||||
- (void) cacheImageInRect: (NSRect)aRect
|
||||
|
@ -2217,7 +2217,7 @@ many times.
|
|||
|
||||
- (BOOL) hasDynamicDepthLimit
|
||||
{
|
||||
return _f.dynamic_depth_limit;
|
||||
return (_f.dynamic_depth_limit ? YES : NO);
|
||||
}
|
||||
|
||||
/** Returns the screen the window is on. */
|
||||
|
@ -2246,7 +2246,7 @@ many times.
|
|||
*/
|
||||
- (BOOL) areCursorRectsEnabled
|
||||
{
|
||||
return _f.cursor_rects_enabled;
|
||||
return (_f.cursor_rects_enabled ? YES : NO);
|
||||
}
|
||||
|
||||
- (void) disableCursorRects
|
||||
|
@ -2407,12 +2407,12 @@ resetCursorRectsForView(NSView *theView)
|
|||
|
||||
- (BOOL) isDocumentEdited
|
||||
{
|
||||
return _f.is_edited;
|
||||
return (_f.is_edited ? YES : NO);
|
||||
}
|
||||
|
||||
- (BOOL) isReleasedWhenClosed
|
||||
{
|
||||
return _f.is_released_when_closed;
|
||||
return (_f.is_released_when_closed ? YES : NO);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -2592,7 +2592,7 @@ resetCursorRectsForView(NSView *theView)
|
|||
*/
|
||||
- (BOOL) acceptsMouseMovedEvents
|
||||
{
|
||||
return _f.accepts_mouse_moved;
|
||||
return (_f.accepts_mouse_moved ? YES : NO);
|
||||
}
|
||||
|
||||
- (NSEvent*) currentEvent
|
||||
|
@ -3670,7 +3670,7 @@ resetCursorRectsForView(NSView *theView)
|
|||
*/
|
||||
- (BOOL) isExcludedFromWindowsMenu
|
||||
{
|
||||
return _f.menu_exclude;
|
||||
return (_f.menu_exclude ? YES : NO);
|
||||
}
|
||||
|
||||
- (void) setExcludedFromWindowsMenu: (BOOL)flag
|
||||
|
|
Loading…
Reference in a new issue