* Source/NSMenuItemCell.m: Implement drawing a line in the menu

separator item for the Windows95 and Mac modes. 


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31797 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2010-12-29 17:21:15 +00:00
parent 41923d49c8
commit 5504324af2
2 changed files with 20 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2010-12-29 12:31-EST Gregory John Casamento <greg.casamento@gmail.com>
* Source/NSMenuItemCell.m: Implement drawing a line in the menu
separator item for the Windows95 and Mac modes.
2010-12-29 Wolfgang Lux <wolfgang.lux@gmail.com>
* Source/NSTextView.m (-_updateDragTargetLocation:operation:,
@ -39,6 +44,7 @@
Make sure the file name displayed in the panel has a valid
extension.
>>>>>>> .r31796
2010-12-27 16:51-EST Gregory John Casamento <greg.casamento@gmail.com>
* Source/GSThemeMenu.m: Changes for compiling with older compilers.

View file

@ -36,7 +36,7 @@
#include <Foundation/NSUserDefaults.h>
#include "AppKit/NSAttributedString.h"
#include "AppKit/NSBox.h"
#include "AppKit/NSBezierPath.h"
#include "AppKit/NSColor.h"
#include "AppKit/NSEvent.h"
#include "AppKit/NSFont.h"
@ -724,6 +724,19 @@
if (style == NSMacintoshInterfaceStyle
|| style == NSWindows95InterfaceStyle)
{
NSBezierPath *path = [NSBezierPath bezierPath];
NSPoint start = NSMakePoint(3, cellFrame.size.height/2 +
cellFrame.origin.y);
NSPoint end = NSMakePoint(cellFrame.size.width - 3,
cellFrame.size.height/2 +
cellFrame.origin.y);
[[NSColor blackColor] set];
[path moveToPoint: start];
[path lineToPoint: end];
[path stroke];
/*
NSRect lineFrame = NSMakeRect(cellFrame.origin.x,
cellFrame.origin.y