mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 16:21:56 +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
944607a5ae
commit
e5757e137f
2 changed files with 19 additions and 17 deletions
|
@ -7,6 +7,8 @@
|
||||||
Send did hide and did unhide notifications to the workspace center
|
Send did hide and did unhide notifications to the workspace center
|
||||||
so the workspace manager knows about them.
|
so the workspace manager knows about them.
|
||||||
Honor the NSWindow-canHide method when deactivating apps.
|
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>
|
2006-02-01 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
|
|
|
@ -1103,7 +1103,7 @@ many times.
|
||||||
|
|
||||||
- (BOOL) hasShadow
|
- (BOOL) hasShadow
|
||||||
{
|
{
|
||||||
return _f.has_shadow;
|
return (_f.has_shadow ? YES : NO);
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) setAlphaValue: (float)windowAlpha
|
- (void) setAlphaValue: (float)windowAlpha
|
||||||
|
@ -1128,7 +1128,7 @@ many times.
|
||||||
|
|
||||||
- (BOOL) isOpaque
|
- (BOOL) isOpaque
|
||||||
{
|
{
|
||||||
return _f.is_opaque;
|
return (_f.is_opaque ? YES : NO);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -1153,7 +1153,7 @@ many times.
|
||||||
|
|
||||||
- (BOOL) isOneShot
|
- (BOOL) isOneShot
|
||||||
{
|
{
|
||||||
return _f.is_one_shot;
|
return (_f.is_one_shot ? YES : NO);
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) setBackingType: (NSBackingStoreType)type
|
- (void) setBackingType: (NSBackingStoreType)type
|
||||||
|
@ -1363,7 +1363,7 @@ many times.
|
||||||
|
|
||||||
- (BOOL) hidesOnDeactivate
|
- (BOOL) hidesOnDeactivate
|
||||||
{
|
{
|
||||||
return _f.hides_on_deactivate;
|
return (_f.hides_on_deactivate ? YES : NO);
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) setCanHide: (BOOL)flag
|
- (void) setCanHide: (BOOL)flag
|
||||||
|
@ -1373,27 +1373,27 @@ many times.
|
||||||
|
|
||||||
- (BOOL) canHide
|
- (BOOL) canHide
|
||||||
{
|
{
|
||||||
return _f.can_hide;
|
return (_f.can_hide ? YES : NO);
|
||||||
}
|
}
|
||||||
|
|
||||||
- (BOOL) isKeyWindow
|
- (BOOL) isKeyWindow
|
||||||
{
|
{
|
||||||
return _f.is_key;
|
return (_f.is_key ? YES : NO);
|
||||||
}
|
}
|
||||||
|
|
||||||
- (BOOL) isMainWindow
|
- (BOOL) isMainWindow
|
||||||
{
|
{
|
||||||
return _f.is_main;
|
return (_f.is_main ? YES : NO);
|
||||||
}
|
}
|
||||||
|
|
||||||
- (BOOL) isMiniaturized
|
- (BOOL) isMiniaturized
|
||||||
{
|
{
|
||||||
return _f.is_miniaturized;
|
return (_f.is_miniaturized ? YES : NO);
|
||||||
}
|
}
|
||||||
|
|
||||||
- (BOOL) isVisible
|
- (BOOL) isVisible
|
||||||
{
|
{
|
||||||
return _f.visible;
|
return (_f.visible ? YES : NO);
|
||||||
}
|
}
|
||||||
|
|
||||||
- (int) level
|
- (int) level
|
||||||
|
@ -2112,7 +2112,7 @@ many times.
|
||||||
|
|
||||||
- (BOOL) isAutodisplay
|
- (BOOL) isAutodisplay
|
||||||
{
|
{
|
||||||
return _f.is_autodisplay;
|
return (_f.is_autodisplay ? YES : NO);
|
||||||
}
|
}
|
||||||
|
|
||||||
- (BOOL) isFlushWindowDisabled
|
- (BOOL) isFlushWindowDisabled
|
||||||
|
@ -2140,7 +2140,7 @@ many times.
|
||||||
|
|
||||||
- (BOOL) viewsNeedDisplay
|
- (BOOL) viewsNeedDisplay
|
||||||
{
|
{
|
||||||
return _rFlags.needs_display;
|
return (_rFlags.needs_display ? YES : NO);
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) cacheImageInRect: (NSRect)aRect
|
- (void) cacheImageInRect: (NSRect)aRect
|
||||||
|
@ -2217,7 +2217,7 @@ many times.
|
||||||
|
|
||||||
- (BOOL) hasDynamicDepthLimit
|
- (BOOL) hasDynamicDepthLimit
|
||||||
{
|
{
|
||||||
return _f.dynamic_depth_limit;
|
return (_f.dynamic_depth_limit ? YES : NO);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Returns the screen the window is on. */
|
/** Returns the screen the window is on. */
|
||||||
|
@ -2246,7 +2246,7 @@ many times.
|
||||||
*/
|
*/
|
||||||
- (BOOL) areCursorRectsEnabled
|
- (BOOL) areCursorRectsEnabled
|
||||||
{
|
{
|
||||||
return _f.cursor_rects_enabled;
|
return (_f.cursor_rects_enabled ? YES : NO);
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) disableCursorRects
|
- (void) disableCursorRects
|
||||||
|
@ -2407,12 +2407,12 @@ resetCursorRectsForView(NSView *theView)
|
||||||
|
|
||||||
- (BOOL) isDocumentEdited
|
- (BOOL) isDocumentEdited
|
||||||
{
|
{
|
||||||
return _f.is_edited;
|
return (_f.is_edited ? YES : NO);
|
||||||
}
|
}
|
||||||
|
|
||||||
- (BOOL) isReleasedWhenClosed
|
- (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
|
- (BOOL) acceptsMouseMovedEvents
|
||||||
{
|
{
|
||||||
return _f.accepts_mouse_moved;
|
return (_f.accepts_mouse_moved ? YES : NO);
|
||||||
}
|
}
|
||||||
|
|
||||||
- (NSEvent*) currentEvent
|
- (NSEvent*) currentEvent
|
||||||
|
@ -3670,7 +3670,7 @@ resetCursorRectsForView(NSView *theView)
|
||||||
*/
|
*/
|
||||||
- (BOOL) isExcludedFromWindowsMenu
|
- (BOOL) isExcludedFromWindowsMenu
|
||||||
{
|
{
|
||||||
return _f.menu_exclude;
|
return (_f.menu_exclude ? YES : NO);
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) setExcludedFromWindowsMenu: (BOOL)flag
|
- (void) setExcludedFromWindowsMenu: (BOOL)flag
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue