mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 19:20:48 +00:00
NSMenuView.m fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22822 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
4e5d589ea6
commit
81f314c55c
2 changed files with 11 additions and 16 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2006-04-27 Sergii Stoian <stoyan255@yahoo.com>
|
||||||
|
|
||||||
|
* Source/NSMenuView.m (-rectOfItemAtIndex:): Delete origin.x fiddling
|
||||||
|
code because it's not correct. The code wich draws heavy line have to
|
||||||
|
update _leftBorderOffset instead.
|
||||||
|
(-drawRect:): Always draw dark gray upper and left border.
|
||||||
|
|
||||||
2006-04-24 Fred Kiefer <FredKiefer@gmx.de>
|
2006-04-24 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
* Source/NSDocumentController.m (-makeUntitledDocumentOfType:):
|
* Source/NSDocumentController.m (-makeUntitledDocumentOfType:):
|
||||||
|
|
|
@ -906,11 +906,6 @@ _addLeftBorderOffsetToRect(NSRect aRect)
|
||||||
theRect.origin.x = _leftBorderOffset;
|
theRect.origin.x = _leftBorderOffset;
|
||||||
theRect.size = _cellSize;
|
theRect.size = _cellSize;
|
||||||
|
|
||||||
/* Fiddle with the origin so that the item rect is shifted 1 pixel over
|
|
||||||
* so we do not draw on the heavy line at origin.x = 0.
|
|
||||||
*/
|
|
||||||
theRect.origin.x++;
|
|
||||||
|
|
||||||
/* NOTE: This returns the correct NSRect for drawing cells, but nothing
|
/* NOTE: This returns the correct NSRect for drawing cells, but nothing
|
||||||
* else (unless we are a popup). This rect will have to be modified for
|
* else (unless we are a popup). This rect will have to be modified for
|
||||||
* event calculation, etc..
|
* event calculation, etc..
|
||||||
|
@ -1096,17 +1091,10 @@ _addLeftBorderOffsetToRect(NSRect aRect)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (![_attachedMenu _ownedByPopUp])
|
sides[0] = NSMinXEdge;
|
||||||
{
|
sides[1] = NSMaxYEdge;
|
||||||
NSDrawButton (_bounds, rect);
|
// Draw the dark gray upper left lines.
|
||||||
}
|
NSDrawTiledRects(_bounds, rect, sides, grays, 2);
|
||||||
else
|
|
||||||
{
|
|
||||||
sides[0] = NSMinXEdge;
|
|
||||||
sides[1] = NSMaxYEdge;
|
|
||||||
// Draw the dark gray upper left lines.
|
|
||||||
NSDrawTiledRects(_bounds, rect, sides, grays, 2);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Draw the menu cells.
|
// Draw the menu cells.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue