From 9ed7e9f4cbb55d115db4948e900c3e1b902e4b01 Mon Sep 17 00:00:00 2001 From: stoyan Date: Thu, 15 Jan 2004 15:58:43 +0000 Subject: [PATCH] Use GSTitleView's initWithOwner: method. Cleanup git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18421 72102866-910b-0410-8b05-ffd578937521 --- Source/NSMenuView.m | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Source/NSMenuView.m b/Source/NSMenuView.m index 8e0beefd4..c9ce7cc19 100644 --- a/Source/NSMenuView.m +++ b/Source/NSMenuView.m @@ -28,6 +28,7 @@ */ #include +#include #include "AppKit/NSApplication.h" #include "AppKit/NSEvent.h" @@ -37,9 +38,6 @@ #include "AppKit/NSButton.h" #include "AppKit/NSWindow.h" #include "AppKit/PSOperators.h" - -#include - #include "AppKit/NSImage.h" #include "GNUstepGUI/GSTitleView.h" @@ -465,9 +463,7 @@ _addLeftBorderOffsetToRect(NSRect aRect) if (![_attachedMenu _ownedByPopUp] && !_titleView) { // Add title view. If this menu not owned by popup -// _titleView = [[NSMenuWindowTitleView alloc] init]; - _titleView = [[GSTitleView alloc] init]; - [_titleView setOwner:_attachedMenu]; + _titleView = [[GSTitleView alloc] initWithOwner:_attachedMenu]; [self addSubview: _titleView]; RELEASE(_titleView); }