From c36c29e8ffb4cf7949cfcc88a1da964e623428db Mon Sep 17 00:00:00 2001 From: gcasa Date: Thu, 14 Jan 2010 12:06:35 +0000 Subject: [PATCH] * Source/NSApplication.m: For hide: perform miniaturizeAll: on Windows, since hiding the app causes it to be inaccessible on that platform. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29281 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 6 ++++++ Source/NSApplication.m | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index 3c98fe405..2e2a8d419 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2010-01-14 07:08-EST Gregory John Casamento + + * Source/NSApplication.m: For hide: perform miniaturizeAll: + on Windows, since hiding the app causes it to be inaccessible on + that platform. + 2010-01-14 04:07-EST Gregory John Casamento * Source/NSToolbarFrameworkPrivate.h: Correct include for new diff --git a/Source/NSApplication.m b/Source/NSApplication.m index 1a2228fe1..7b1f828c5 100644 --- a/Source/NSApplication.m +++ b/Source/NSApplication.m @@ -2346,6 +2346,9 @@ image.

See Also: -applicationIconImage

*/ - (void) hide: (id)sender { +#ifdef __MINGW32__ + [self miniaturizeAll: sender]; +#else if (_app_is_hidden == NO) { NSArray *windows_list; @@ -2424,6 +2427,7 @@ image.

See Also: -applicationIconImage

object: [NSWorkspace sharedWorkspace] userInfo: info]; } +#endif } /**

Returns whether app is currently in hidden state.