mirror of
https://github.com/transmission/transmission
synced 2024-12-25 01:03:01 +00:00
Add Find to edit menu, since find can be useful for debugging.
This commit is contained in:
parent
368e7b4c4e
commit
8efe17e072
3 changed files with 4 additions and 3 deletions
2
macosx/English.lproj/MainMenu.nib/info.nib
generated
2
macosx/English.lproj/MainMenu.nib/info.nib
generated
|
@ -31,8 +31,8 @@
|
|||
<integer>3</integer>
|
||||
<key>IBOpenObjects</key>
|
||||
<array>
|
||||
<integer>21</integer>
|
||||
<integer>29</integer>
|
||||
<integer>21</integer>
|
||||
</array>
|
||||
<key>IBSystem Version</key>
|
||||
<string>8J135</string>
|
||||
|
|
BIN
macosx/English.lproj/MainMenu.nib/keyedobjects.nib
generated
BIN
macosx/English.lproj/MainMenu.nib/keyedobjects.nib
generated
Binary file not shown.
|
@ -46,6 +46,7 @@
|
|||
fAttributes = [[NSDictionary alloc] initWithObjectsAndKeys:
|
||||
[NSFont fontWithName: @"Monaco" size: 10], NSFontAttributeName,
|
||||
paragraph, NSParagraphStyleAttributeName, nil];
|
||||
[paragraph release];
|
||||
|
||||
[[self window] update]; //make sure nib is loaded right away
|
||||
}
|
||||
|
@ -90,7 +91,7 @@
|
|||
NSScroller * scroller = [fScrollView verticalScroller];
|
||||
BOOL shouldScroll = [scroller floatValue] == 1.0 || [scroller isHidden] || [scroller knobProportion] == 1.0;
|
||||
|
||||
NSMutableAttributedString * messageString;
|
||||
NSAttributedString * messageString;
|
||||
NSString * levelString, * dateString;
|
||||
for (currentMessage = messages; currentMessage != NULL; currentMessage = currentMessage->next)
|
||||
{
|
||||
|
@ -111,7 +112,7 @@
|
|||
|
||||
dateString = [[NSDate dateWithTimeIntervalSince1970: currentMessage->when]
|
||||
descriptionWithCalendarFormat: @"%1m/%d %H:%M:%S" timeZone: nil locale: nil];
|
||||
messageString = [[[NSMutableAttributedString alloc] initWithString: [NSString stringWithFormat: @"%@ %@ %s",
|
||||
messageString = [[[NSAttributedString alloc] initWithString: [NSString stringWithFormat: @"%@ %@ %s",
|
||||
dateString, levelString, currentMessage->message] attributes: fAttributes] autorelease];
|
||||
|
||||
[[fTextView textStorage] appendAttributedString: messageString];
|
||||
|
|
Loading…
Reference in a new issue