mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 06:40:38 +00:00
Added [dealloc]. In [setMenuView:], if the menu belongs to a popup
set the ivar _mcell_belongs_to_popupbutton. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10913 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
141d8751b7
commit
b741a26379
1 changed files with 13 additions and 0 deletions
|
@ -75,6 +75,14 @@ static NSImage *arrowImageH = nil;
|
|||
return self;
|
||||
}
|
||||
|
||||
- (void) dealloc
|
||||
{
|
||||
RELEASE(_menuItem);
|
||||
RELEASE(_menuView);
|
||||
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
- (void) setHighlighted:(BOOL)flag
|
||||
{
|
||||
_cell.is_highlighted = flag;
|
||||
|
@ -99,6 +107,11 @@ static NSImage *arrowImageH = nil;
|
|||
- (void) setMenuView:(NSMenuView *)menuView
|
||||
{
|
||||
ASSIGN(_menuView, menuView);
|
||||
if ([[_menuView menu] _ownedByPopUp])
|
||||
{
|
||||
_mcell_belongs_to_popupbutton = YES;
|
||||
[self setImagePosition: NSImageRight];
|
||||
}
|
||||
}
|
||||
|
||||
- (NSMenuView *) menuView
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue