mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-21 03:41:07 +00:00
isOpaque implemented. update imporving
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16432 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
34f48b57a7
commit
ea951e6cba
1 changed files with 9 additions and 0 deletions
|
@ -483,6 +483,10 @@ _addLeftBorderOffsetToRect(NSRect aRect)
|
|||
|
||||
// Resize it anyway.
|
||||
[self sizeToFit];
|
||||
|
||||
// Just quit here if we are a popup.
|
||||
if ([_menu _ownedByPopUp])
|
||||
return;
|
||||
|
||||
if ([_menu isTornOff] && ![_menu isTransient])
|
||||
{
|
||||
|
@ -920,6 +924,11 @@ _addLeftBorderOffsetToRect(NSRect aRect)
|
|||
/*
|
||||
* Drawing.
|
||||
*/
|
||||
- (BOOL) isOpaque
|
||||
{
|
||||
return YES;
|
||||
}
|
||||
|
||||
- (void) drawRect: (NSRect)rect
|
||||
{
|
||||
int i;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue