mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 18:50:48 +00:00
Remove uneeded code from NSWindow in initWithContentRect:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38013 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
81fdb0bb0f
commit
7b08af4087
2 changed files with 6 additions and 10 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2014-07-25 Gregory John Casamento <greg.casamento@gmail.com>
|
||||||
|
|
||||||
|
* Source/NSWindow.m: Remove code in (initWithContentRect:..) which
|
||||||
|
checks to see if style is NSWindows95InterfaceStyle. This code
|
||||||
|
is never executed.
|
||||||
|
|
||||||
2014-07-24 Fred Kiefer <FredKiefer@gmx.de>
|
2014-07-24 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
* Source/GSGormLoading.m (GSWindowTemplate initWithCoder:): Remove
|
* Source/GSGormLoading.m (GSWindowTemplate initWithCoder:): Remove
|
||||||
|
|
|
@ -1029,8 +1029,6 @@ many times.
|
||||||
defer: (BOOL)flag
|
defer: (BOOL)flag
|
||||||
{
|
{
|
||||||
NSRect cframe;
|
NSRect cframe;
|
||||||
NSInterfaceStyle style =
|
|
||||||
NSInterfaceStyleForKey(@"NSMenuInterfaceStyle", nil);
|
|
||||||
|
|
||||||
NSAssert(NSApp,
|
NSAssert(NSApp,
|
||||||
@"The shared NSApplication instance must be created before windows "
|
@"The shared NSApplication instance must be created before windows "
|
||||||
|
@ -1102,14 +1100,6 @@ many times.
|
||||||
name: NSColorListDidChangeNotification
|
name: NSColorListDidChangeNotification
|
||||||
object: nil];
|
object: nil];
|
||||||
|
|
||||||
if (style == NSWindows95InterfaceStyle)
|
|
||||||
{
|
|
||||||
if([self canBecomeMainWindow])
|
|
||||||
{
|
|
||||||
[self setMenu: [NSApp mainMenu]];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
NSDebugLLog(@"NSWindow", @"NSWindow end of init\n");
|
NSDebugLLog(@"NSWindow", @"NSWindow end of init\n");
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue