Monotone-Parent: 698a166193d0842dd18a4a9d456862b37e990823

Monotone-Revision: bea2b39cd9e898f8f9790ce5d4b5c2704598c453

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2006-08-01T19:18:52
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2006-08-01 19:18:52 +00:00
parent 1faa1b5bc0
commit e61b8eecf2
2 changed files with 16 additions and 0 deletions

View File

@@ -1,5 +1,10 @@
2006-08-01 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* UI/MailerUI/UIxMailFolderMenu.m ([UIxMailFolderMenu
-iconForMenuItem]): new method that returns the fully qualified
relative URL to the icon representing the mailbox, or the default
mailbox icon if needed.
* UI/SOGoUI/UIxComponent.m ([UIxComponent
-urlForResourceFilename:filename]): automatically return an empty
string whenever the filename passed as argument is nil.

View File

@@ -70,4 +70,15 @@
return levelledNodes;
}
- (NSString *) iconForMenuItem
{
NSString *iconName;
iconName = [item iconName];
if (!iconName)
iconName = [self defaultIconName];
return [self urlForResourceFilename: iconName];
}
@end