Honor [NSWindow-canHide[ in [NSApplication-hide:]

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22423 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2006-02-03 14:49:21 +00:00
parent a9df2a9da4
commit 5a064c4e39
2 changed files with 5 additions and 0 deletions

View file

@ -12,6 +12,7 @@
userinfo dictionry really are there.
* Source/NSApplication.m: Code more defensively setting up
notification info.
Honor the NSWindow -canHide method when hiding the application.
* Source/GSServicesManager.m: Improve handling of incoming messages,
prohibit remote processes from calling private methods.
* Source/NSWindow.m:

View file

@ -2226,6 +2226,10 @@ image.</p><p>See Also: -applicationIconImage</p>
{
continue; /* Already invisible */
}
if ([win canHide] == NO)
{
continue; /* Not hideable */
}
if (win == _app_icon_window)
{
continue; /* can't hide the app icon. */