From e61b8eecf28ab02acfe477b75c7d969685ed227d Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Tue, 1 Aug 2006 19:18:52 +0000 Subject: [PATCH] Monotone-Parent: 698a166193d0842dd18a4a9d456862b37e990823 Monotone-Revision: bea2b39cd9e898f8f9790ce5d4b5c2704598c453 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-08-01T19:18:52 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 5 +++++ UI/MailerUI/UIxMailFolderMenu.m | 11 +++++++++++ 2 files changed, 16 insertions(+) diff --git a/ChangeLog b/ChangeLog index 3e25ed1f8..b4ba42f6e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2006-08-01 Wolfgang Sourdeau + * 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. diff --git a/UI/MailerUI/UIxMailFolderMenu.m b/UI/MailerUI/UIxMailFolderMenu.m index 8c440c8fc..e90d9f40c 100644 --- a/UI/MailerUI/UIxMailFolderMenu.m +++ b/UI/MailerUI/UIxMailFolderMenu.m @@ -70,4 +70,15 @@ return levelledNodes; } +- (NSString *) iconForMenuItem +{ + NSString *iconName; + + iconName = [item iconName]; + if (!iconName) + iconName = [self defaultIconName]; + + return [self urlForResourceFilename: iconName]; +} + @end