mirror of
https://github.com/transmission/transmission
synced 2025-01-31 03:12:44 +00:00
Remove deprecated min/max toolbar item size
This commit is contained in:
parent
31413dffb1
commit
0916844fa5
1 changed files with 21 additions and 9 deletions
|
@ -3634,9 +3634,13 @@ static void removeKeRangerRansomware()
|
||||||
|
|
||||||
[item setView: button];
|
[item setView: button];
|
||||||
|
|
||||||
|
if (@available(macOS 11.0, *)) {
|
||||||
|
// not needed
|
||||||
|
} else {
|
||||||
const NSSize buttonSize = NSMakeSize(36.0, 25.0);
|
const NSSize buttonSize = NSMakeSize(36.0, 25.0);
|
||||||
[item setMinSize: buttonSize];
|
[item setMinSize: buttonSize];
|
||||||
[item setMaxSize: buttonSize];
|
[item setMaxSize: buttonSize];
|
||||||
|
}
|
||||||
|
|
||||||
return item;
|
return item;
|
||||||
}
|
}
|
||||||
|
@ -3729,9 +3733,13 @@ static void removeKeRangerRansomware()
|
||||||
[segmentedControl setSegmentCount: 2];
|
[segmentedControl setSegmentCount: 2];
|
||||||
[segmentedCell setTrackingMode: NSSegmentSwitchTrackingMomentary];
|
[segmentedCell setTrackingMode: NSSegmentSwitchTrackingMomentary];
|
||||||
|
|
||||||
|
if (@available(macOS 11.0, *)) {
|
||||||
|
// not needed
|
||||||
|
} else {
|
||||||
const NSSize groupSize = NSMakeSize(72.0, 25.0);
|
const NSSize groupSize = NSMakeSize(72.0, 25.0);
|
||||||
[groupItem setMinSize: groupSize];
|
[groupItem setMinSize: groupSize];
|
||||||
[groupItem setMaxSize: groupSize];
|
[groupItem setMaxSize: groupSize];
|
||||||
|
}
|
||||||
|
|
||||||
[groupItem setLabel: NSLocalizedString(@"Apply All", "All toolbar item -> label")];
|
[groupItem setLabel: NSLocalizedString(@"Apply All", "All toolbar item -> label")];
|
||||||
[groupItem setPaletteLabel: NSLocalizedString(@"Pause / Resume All", "All toolbar item -> palette label")];
|
[groupItem setPaletteLabel: NSLocalizedString(@"Pause / Resume All", "All toolbar item -> palette label")];
|
||||||
|
@ -3774,9 +3782,13 @@ static void removeKeRangerRansomware()
|
||||||
[segmentedControl setSegmentCount: 2];
|
[segmentedControl setSegmentCount: 2];
|
||||||
[segmentedCell setTrackingMode: NSSegmentSwitchTrackingMomentary];
|
[segmentedCell setTrackingMode: NSSegmentSwitchTrackingMomentary];
|
||||||
|
|
||||||
|
if (@available(macOS 11.0, *)) {
|
||||||
|
// not needed
|
||||||
|
} else {
|
||||||
const NSSize groupSize = NSMakeSize(72.0, 25.0);
|
const NSSize groupSize = NSMakeSize(72.0, 25.0);
|
||||||
[groupItem setMinSize: groupSize];
|
[groupItem setMinSize: groupSize];
|
||||||
[groupItem setMaxSize: groupSize];
|
[groupItem setMaxSize: groupSize];
|
||||||
|
}
|
||||||
|
|
||||||
[groupItem setLabel: NSLocalizedString(@"Apply Selected", "Selected toolbar item -> label")];
|
[groupItem setLabel: NSLocalizedString(@"Apply Selected", "Selected toolbar item -> label")];
|
||||||
[groupItem setPaletteLabel: NSLocalizedString(@"Pause / Resume Selected", "Selected toolbar item -> palette label")];
|
[groupItem setPaletteLabel: NSLocalizedString(@"Pause / Resume Selected", "Selected toolbar item -> palette label")];
|
||||||
|
|
Loading…
Reference in a new issue