mirror of
https://github.com/transmission/transmission
synced 2025-03-12 07:03:44 +00:00
trivial adjustments to the search field
This commit is contained in:
parent
ffa9d6b125
commit
265eeac33a
4 changed files with 14 additions and 16 deletions
|
@ -122,7 +122,7 @@ typedef enum
|
|||
#define WINDOW_REGULAR_WIDTH 468.0
|
||||
|
||||
#define SEARCH_FILTER_MIN_WIDTH 55.0
|
||||
#define SEARCH_FILTER_MAX_WIDTH 115.0
|
||||
#define SEARCH_FILTER_MAX_WIDTH 110.0
|
||||
|
||||
#define UPDATE_UI_SECONDS 1.0
|
||||
#define AUTO_SPEED_LIMIT_SECONDS 5.0
|
||||
|
@ -584,9 +584,6 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
|
|||
//save history
|
||||
[self updateTorrentHistory];
|
||||
|
||||
[fDisplayedTorrents removeAllObjects];
|
||||
[fTorrents removeAllObjects];
|
||||
|
||||
//remaining calls the same as dealloc
|
||||
[fInfoController release];
|
||||
[fMessageController release];
|
||||
|
@ -3612,9 +3609,8 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
|
|||
//make sure it is not too long
|
||||
if (frame.size.width > SEARCH_FILTER_MAX_WIDTH)
|
||||
{
|
||||
float different = frame.size.width - SEARCH_FILTER_MAX_WIDTH;
|
||||
frame.origin.x += different;
|
||||
frame.size.width -= different;
|
||||
frame.origin.x += frame.size.width - SEARCH_FILTER_MAX_WIDTH;
|
||||
frame.size.width = SEARCH_FILTER_MAX_WIDTH;
|
||||
}
|
||||
[fSearchFilterField setFrame: frame];
|
||||
}
|
||||
|
|
16
macosx/English.lproj/MainMenu.nib/classes.nib
generated
16
macosx/English.lproj/MainMenu.nib/classes.nib
generated
|
@ -264,14 +264,6 @@
|
|||
<key>SUPERCLASS</key>
|
||||
<string>NSObject</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>CLASS</key>
|
||||
<string>FilterButton</string>
|
||||
<key>LANGUAGE</key>
|
||||
<string>ObjC</string>
|
||||
<key>SUPERCLASS</key>
|
||||
<string>NSButton</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>ACTIONS</key>
|
||||
<dict>
|
||||
|
@ -310,6 +302,14 @@
|
|||
<key>SUPERCLASS</key>
|
||||
<string>NSTableView</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>CLASS</key>
|
||||
<string>FilterButton</string>
|
||||
<key>LANGUAGE</key>
|
||||
<string>ObjC</string>
|
||||
<key>SUPERCLASS</key>
|
||||
<string>NSButton</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>CLASS</key>
|
||||
<string>ActionPopUpButton</string>
|
||||
|
|
4
macosx/English.lproj/MainMenu.nib/info.nib
generated
4
macosx/English.lproj/MainMenu.nib/info.nib
generated
|
@ -9,7 +9,9 @@
|
|||
<key>IBOldestOS</key>
|
||||
<integer>5</integer>
|
||||
<key>IBOpenObjects</key>
|
||||
<array/>
|
||||
<array>
|
||||
<integer>1603</integer>
|
||||
</array>
|
||||
<key>IBSystem Version</key>
|
||||
<string>9B18</string>
|
||||
<key>targetFramework</key>
|
||||
|
|
BIN
macosx/English.lproj/MainMenu.nib/keyedobjects.nib
generated
BIN
macosx/English.lproj/MainMenu.nib/keyedobjects.nib
generated
Binary file not shown.
Loading…
Add table
Reference in a new issue