Revision: 6949
http://skim-app.svn.sourceforge.net/skim-app/?rev=6949&view=rev
Author: hofman
Date: 2010-12-08 18:26:08 +0000 (Wed, 08 Dec 2010)
Log Message:
-----------
display all paths in tooltip for session bookmark
Modified Paths:
--------------
trunk/SKBookmarkController.m
Modified: trunk/SKBookmarkController.m
===================================================================
--- trunk/SKBookmarkController.m 2010-12-08 12:51:54 UTC (rev 6948)
+++ trunk/SKBookmarkController.m 2010-12-08 18:26:08 UTC (rev 6949)
@@ -697,7 +697,14 @@
if ([tcID isEqualToString:LABEL_COLUMNID]) {
return [item label];
} else if ([tcID isEqualToString:FILE_COLUMNID]) {
- return [item path];
+ if ([item bookmarkType] == SKBookmarkTypeSession) {
+ return [[[item children] valueForKey:@"path"]
componentsJoinedByString:@"\n"];
+ } else if ([item bookmarkType] == SKBookmarkTypeFolder) {
+ NSInteger count = [item countOfChildren];
+ return count == 1 ? NSLocalizedString(@"1 item", @"Bookmark folder
description") : [NSString stringWithFormat:NSLocalizedString(@"%ld items",
@"Bookmark folder description"), (long)count];
+ } else {
+ return [item path];
+ }
} else if ([tcID isEqualToString:PAGE_COLUMNID]) {
return [[item pageNumber] stringValue];
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
This SF Dev2Dev email is sponsored by:
WikiLeaks The End of the Free Internet
http://p.sf.net/sfu/therealnews-com
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit