mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-20 16:46:23 +00:00
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
This commit is contained in:
parent
3def92db6c
commit
b9381fedfa
1 changed files with 2 additions and 6 deletions
|
@ -28,6 +28,7 @@
|
|||
*/
|
||||
|
||||
#include <Foundation/NSRunLoop.h>
|
||||
#include <Foundation/NSDebug.h>
|
||||
|
||||
#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 <Foundation/NSDebug.h>
|
||||
|
||||
#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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue