Revision: 27809
          http://sourceforge.net/p/bibdesk/svn/27809
Author:   hofman
Date:     2022-08-18 14:10:00 +0000 (Thu, 18 Aug 2022)
Log Message:
-----------
set accessibility description on error count bubble image

Modified Paths:
--------------
    trunk/bibdesk/BDSKGroupOutlineView.m

Modified: trunk/bibdesk/BDSKGroupOutlineView.m
===================================================================
--- trunk/bibdesk/BDSKGroupOutlineView.m        2022-08-17 17:16:08 UTC (rev 
27808)
+++ trunk/bibdesk/BDSKGroupOutlineView.m        2022-08-18 14:10:00 UTC (rev 
27809)
@@ -144,6 +144,7 @@
             [[NSGraphicsContext currentContext] 
setCompositingOperation:NSCompositeClear];
             [countString drawWithRect:rect 
options:NSStringDrawingUsesLineFragmentOrigin];
             [countImage unlockFocus];
+            [countImage setAccessibilityDescription:[NSString 
stringWithFormat:@"%ld", count]];
         } else if (count == -1) {
             [countImage lockFocus];
             CGFloat u = size.height / 14.0;
@@ -160,10 +161,9 @@
             [[NSColor colorWithGenericGamma22White:0.0 alpha:0.9] setFill];
             [path fill];
             [countImage unlockFocus];
+            [countImage setAccessibilityDescription:[NSString 
stringWithFormat:NSLocalizedString(@"error", @""), count]];
         }
         [countImage setTemplate:YES];
-        if (count > 0)
-            [countImage setAccessibilityDescription:[NSString 
stringWithFormat:@"%ld", count]];
         if (countImages == nil)
             countImages = NSCreateMapTable(NSIntegerMapKeyCallBacks, 
NSObjectMapValueCallBacks, 0);
         NSMapInsert(countImages, (const void *)count, countImage);

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



_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to