Addressed changes requested in PR 201

This commit is contained in:
Kyle J Cardoza 2023-09-22 15:20:23 -04:00
parent 07f1b8759a
commit 096327e87b
5 changed files with 7 additions and 9 deletions

View file

@ -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

View file

@ -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];

View file

@ -182,8 +182,8 @@
return aRect;
}
- (float) proposedTitleWidth: (float)proposedWidth
forMenuView: (NSMenuView *)aMenuView
- (CGFloat) proposedTitleWidth: (CGFloat)proposedWidth
forMenuView: (NSMenuView *)aMenuView
{
return proposedWidth;
}

View file

@ -265,8 +265,6 @@ static BOOL menuBarVisible = YES;
NSString *servicesString = _(@"Services");
int i;
if ([self _isMain])
{
NSString *appTitle;

View file

@ -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])
{