hidewindow methods was renamed to hideApplication.

This commit is contained in:
Sergii Stoian 2019-04-06 22:36:56 +03:00
parent f5bcf3019b
commit b5e65175a3
4 changed files with 10 additions and 4 deletions

View file

@ -1,6 +1,12 @@
2019-04-06 Sergii Stoian <stoyan255@ukr.net>
* Source/NSApplication.m (hide:): Change comment before call to `hidwindow`.
* Headers/Additions/GNUstepGUI/GSDisplayServer.h,
* Source/NSApplication.m,
* Source/GSDisplayServer.m: `hidewindow` method was renamed to
`hideApplication`
* Source/NSApplication.m (hide:): Change comment before call to
`hidewindow`.
* Source/GSDisplayServer.m (hidewindow:): fixes to return value and type.
Change comment.

View file

@ -136,7 +136,7 @@ APPKIT_EXPORT NSString *GSScreenNumber;
- (void) windowbacking: (NSBackingStoreType)type : (int)win;
- (void) titlewindow: (NSString *)window_title : (int)win;
- (void) miniwindow: (int)win;
- (BOOL) hidewindow: (int)win;
- (BOOL) hideApplication: (int)win;
- (BOOL) appOwnsMiniwindow;
- (void) setWindowdevice: (int)win forContext: (NSGraphicsContext *)ctxt;
// Deprecated

View file

@ -603,7 +603,7 @@ GSCurrentServer(void)
/** Ask the window manager to hide all the application windows for us.
Return whether they have been hidden. */
- (BOOL) hidewindow: (int) win
- (BOOL) hideApplication: (int) win
{
return NO;
}

View file

@ -2499,7 +2499,7 @@ image.</p><p>See Also: -applicationIconImage</p>
/** Ask the window manager to hide all the application windows for us.
Return whether they have been hidden. */
win = [[self mainMenu] window];
if ([GSServerForWindow(win) hidewindow: [win windowNumber]] == NO)
if ([GSServerForWindow(win) hideApplication: [win windowNumber]] == NO)
{
windows_list = GSOrderedWindows();
iter = [windows_list reverseObjectEnumerator];