mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-20 21:56:27 +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/NSRunLoop.h>
|
||||||
|
#include <Foundation/NSDebug.h>
|
||||||
|
|
||||||
#include "AppKit/NSApplication.h"
|
#include "AppKit/NSApplication.h"
|
||||||
#include "AppKit/NSEvent.h"
|
#include "AppKit/NSEvent.h"
|
||||||
|
@ -37,9 +38,6 @@
|
||||||
#include "AppKit/NSButton.h"
|
#include "AppKit/NSButton.h"
|
||||||
#include "AppKit/NSWindow.h"
|
#include "AppKit/NSWindow.h"
|
||||||
#include "AppKit/PSOperators.h"
|
#include "AppKit/PSOperators.h"
|
||||||
|
|
||||||
#include <Foundation/NSDebug.h>
|
|
||||||
|
|
||||||
#include "AppKit/NSImage.h"
|
#include "AppKit/NSImage.h"
|
||||||
|
|
||||||
#include "GNUstepGUI/GSTitleView.h"
|
#include "GNUstepGUI/GSTitleView.h"
|
||||||
|
@ -465,9 +463,7 @@ _addLeftBorderOffsetToRect(NSRect aRect)
|
||||||
if (![_attachedMenu _ownedByPopUp] && !_titleView)
|
if (![_attachedMenu _ownedByPopUp] && !_titleView)
|
||||||
{
|
{
|
||||||
// Add title view. If this menu not owned by popup
|
// Add title view. If this menu not owned by popup
|
||||||
// _titleView = [[NSMenuWindowTitleView alloc] init];
|
_titleView = [[GSTitleView alloc] initWithOwner:_attachedMenu];
|
||||||
_titleView = [[GSTitleView alloc] init];
|
|
||||||
[_titleView setOwner:_attachedMenu];
|
|
||||||
[self addSubview: _titleView];
|
[self addSubview: _titleView];
|
||||||
RELEASE(_titleView);
|
RELEASE(_titleView);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue