]> granicus.if.org Git - transmission/commitdiff
Yosemite: slight sseparation between pause/resume buttons in the toolbar
authorMitchell Livingston <livings124@transmissionbt.com>
Sat, 18 Oct 2014 16:41:31 +0000 (16:41 +0000)
committerMitchell Livingston <livings124@transmissionbt.com>
Sat, 18 Oct 2014 16:41:31 +0000 (16:41 +0000)
macosx/Controller.m

index f7518596ba37cdc4e3180c777fb84266f13c122e..a4ace8927c9e1a9f746875dda01d95276142d06f 100644 (file)
@@ -2117,6 +2117,8 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
         [notification setHasActionButton: YES];
         [notification setActionButtonTitle: NSLocalizedString(@"Show", "notification button")];
         
+        notification.additionalActions = @[ [NSUserNotificationAction actionWithIdentifier:@"a" title:@"a"], [NSUserNotificationAction actionWithIdentifier:@"b" title:@"b"] ];
+        
         NSMutableDictionary * userInfo = [NSMutableDictionary dictionaryWithObject: [torrent hashString] forKey: @"Hash"];
         if (location)
             [userInfo setObject: location forKey: @"Location"];
@@ -3953,6 +3955,10 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
         [groupItem setView: segmentedControl];
         NSSegmentedCell * segmentedCell = (NSSegmentedCell *)[segmentedControl cell];
         
+        if ([NSApp isOnYosemiteOrBetter]) {
+            segmentedControl.segmentStyle = NSSegmentStyleSeparated;
+        }
+        
         [segmentedControl setSegmentCount: 2];
         [segmentedCell setTrackingMode: NSSegmentSwitchTrackingMomentary];
         
@@ -3995,6 +4001,10 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
         [groupItem setView: segmentedControl];
         NSSegmentedCell * segmentedCell = (NSSegmentedCell *)[segmentedControl cell];
         
+        if ([NSApp isOnYosemiteOrBetter]) {
+            segmentedControl.segmentStyle = NSSegmentStyleSeparated;
+        }
+        
         [segmentedControl setSegmentCount: 2];
         [segmentedCell setTrackingMode: NSSegmentSwitchTrackingMomentary];