mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
resize the level popup in the message window for localizations
This commit is contained in:
@@ -84,6 +84,9 @@
|
||||
[[fLevelButton itemAtIndex: LEVEL_INFO] setTitle: NSLocalizedString(@"Info", "Message window -> level string")];
|
||||
[[fLevelButton itemAtIndex: LEVEL_DEBUG] setTitle: NSLocalizedString(@"Debug", "Message window -> level string")];
|
||||
|
||||
const CGFloat levelButtonOldWidth = NSWidth([fLevelButton frame]);
|
||||
[fLevelButton sizeToFit];
|
||||
|
||||
//set table column text
|
||||
[[[fMessageTable tableColumnWithIdentifier: @"Date"] headerCell] setTitle: NSLocalizedString(@"Date",
|
||||
"Message window -> table column")];
|
||||
@@ -98,6 +101,7 @@
|
||||
|
||||
NSRect saveButtonFrame = [fSaveButton frame];
|
||||
saveButtonFrame.size.width += 10.0;
|
||||
saveButtonFrame.origin.x += NSWidth([fLevelButton frame]) - levelButtonOldWidth;
|
||||
[fSaveButton setFrame: saveButtonFrame];
|
||||
|
||||
const CGFloat oldClearButtonWidth = [fClearButton frame].size.width;
|
||||
|
||||
Reference in New Issue
Block a user