Revision: 13421
          http://sourceforge.net/p/skim-app/code/13421
Author:   hofman
Date:     2023-04-19 22:56:08 +0000 (Wed, 19 Apr 2023)
Log Message:
-----------
Fix touch bar for presentation options controller

Modified Paths:
--------------
    trunk/SKPresentationOptionsSheetController.m

Modified: trunk/SKPresentationOptionsSheetController.m
===================================================================
--- trunk/SKPresentationOptionsSheetController.m        2023-04-19 22:52:09 UTC 
(rev 13420)
+++ trunk/SKPresentationOptionsSheetController.m        2023-04-19 22:56:08 UTC 
(rev 13421)
@@ -534,11 +534,13 @@
     NSCustomTouchBarItem *item = nil;
     if ([identifier isEqualToString:SKTouchBarItemIdentifierOK]) {
         NSButton *button = [NSButton buttonWithTitle:[okButton title] 
target:[okButton target] action:[okButton action]];
+        [button setTag:NSModalResponseOK];
         [button setKeyEquivalent:@"\r"];
         item = [[[NSClassFromString(@"NSCustomTouchBarItem") alloc] 
initWithIdentifier:identifier] autorelease];
         [(NSCustomTouchBarItem *)item setView:button];
     } else if ([identifier isEqualToString:SKTouchBarItemIdentifierCancel]) {
         NSButton *button = [NSButton buttonWithTitle:[cancelButton title] 
target:[cancelButton target] action:[cancelButton action]];
+        [button setTag:NSModalResponseCancel];
         item = [[[NSClassFromString(@"NSCustomTouchBarItem") alloc] 
initWithIdentifier:identifier] autorelease];
         [(NSCustomTouchBarItem *)item setView:button];
     }

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to