mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 13:10:59 +00:00
Addressed changes requested in PR 201
This commit is contained in:
parent
07f1b8759a
commit
096327e87b
5 changed files with 7 additions and 9 deletions
|
@ -1522,8 +1522,8 @@ withRepeatedImage: (NSImage*)image
|
|||
* Modifies the proposed default width for a menu title in the given NSMenuView.
|
||||
* The default implementation simply returns the proposed width unmodified.
|
||||
*/
|
||||
- (float) proposedTitleWidth: (float)proposedWidth
|
||||
forMenuView: (NSMenuView *)aMenuView;
|
||||
- (CGFloat) proposedTitleWidth: (CGFloat)proposedWidth
|
||||
forMenuView: (NSMenuView *)aMenuView;
|
||||
|
||||
/**
|
||||
* Modifies the proposed key equivalent string for the menu item. The default
|
||||
|
|
|
@ -2084,7 +2084,7 @@ static NSDictionary *titleTextAttributes[3] = {nil, nil, nil};
|
|||
buttonSize.height)];
|
||||
}
|
||||
|
||||
- (NSRect) minimizeButtonFrameForBounds: (NSRect)bounds
|
||||
- (NSRect) closeButtonFrameForBounds: (NSRect)bounds
|
||||
{
|
||||
GSTheme *theme = [GSTheme theme];
|
||||
|
||||
|
|
|
@ -182,8 +182,8 @@
|
|||
return aRect;
|
||||
}
|
||||
|
||||
- (float) proposedTitleWidth: (float)proposedWidth
|
||||
forMenuView: (NSMenuView *)aMenuView
|
||||
- (CGFloat) proposedTitleWidth: (CGFloat)proposedWidth
|
||||
forMenuView: (NSMenuView *)aMenuView
|
||||
{
|
||||
return proposedWidth;
|
||||
}
|
||||
|
|
|
@ -265,8 +265,6 @@ static BOOL menuBarVisible = YES;
|
|||
NSString *servicesString = _(@"Services");
|
||||
int i;
|
||||
|
||||
|
||||
|
||||
if ([self _isMain])
|
||||
{
|
||||
NSString *appTitle;
|
||||
|
|
|
@ -789,10 +789,10 @@ static float menuBarHeight = 0.0;
|
|||
{
|
||||
GSCellRect elem;
|
||||
NSMenuItemCell *aCell = [self menuItemCellForItemAtIndex: i];
|
||||
float titleWidth = [aCell titleWidth];
|
||||
CGFloat titleWidth = [aCell titleWidth];
|
||||
|
||||
titleWidth = [[GSTheme theme] proposedTitleWidth: titleWidth
|
||||
forMenuView: self];
|
||||
forMenuView: self];
|
||||
|
||||
if ([aCell imageWidth])
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue