mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 20:51:55 +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;
|
return self;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (void) dealloc
|
||||||
|
{
|
||||||
|
RELEASE(_menuItem);
|
||||||
|
RELEASE(_menuView);
|
||||||
|
|
||||||
|
[super dealloc];
|
||||||
|
}
|
||||||
|
|
||||||
- (void) setHighlighted:(BOOL)flag
|
- (void) setHighlighted:(BOOL)flag
|
||||||
{
|
{
|
||||||
_cell.is_highlighted = flag;
|
_cell.is_highlighted = flag;
|
||||||
|
@ -99,6 +107,11 @@ static NSImage *arrowImageH = nil;
|
||||||
- (void) setMenuView:(NSMenuView *)menuView
|
- (void) setMenuView:(NSMenuView *)menuView
|
||||||
{
|
{
|
||||||
ASSIGN(_menuView, menuView);
|
ASSIGN(_menuView, menuView);
|
||||||
|
if ([[_menuView menu] _ownedByPopUp])
|
||||||
|
{
|
||||||
|
_mcell_belongs_to_popupbutton = YES;
|
||||||
|
[self setImagePosition: NSImageRight];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
- (NSMenuView *) menuView
|
- (NSMenuView *) menuView
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue