gap-dev-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gap-dev-discuss] get rid of #ifdef MACOSX in GNUMails MailHeaderCell.m


From: Sebastian Reitenbach
Subject: [Gap-dev-discuss] get rid of #ifdef MACOSX in GNUMails MailHeaderCell.m
Date: Fri, 31 Aug 2012 18:44:49 +0200
User-agent: SOGoMail 1.3.17

Hi,

attached patch just only fiddles a bit with the offset of the mail header shown 
in the mail viewer,
which I think looks better to me.

OK?

Sebastian

$OpenBSD$
--- Framework/GNUMail/MailHeaderCell.m.orig     Fri Aug 31 18:37:02 2012
+++ Framework/GNUMail/MailHeaderCell.m  Fri Aug 31 18:37:17 2012
@@ -70,11 +70,7 @@
 {
   float h;
 
-#ifdef MACOSX
   h = [[self attributedStringValue] size].height+5;
-#else
-  h = [[self attributedStringValue] size].height+20;
-#endif
 
   //
   // We want the MailHeaderCell to be at least as high
@@ -225,9 +221,7 @@
     }
 
   // We fill our cell
-#ifdef MACOSX
   theFrame.origin.y += 4;
-#endif
   theFrame.size.width -= 10;
   [_color set];
   aRoundRect = [NSBezierPath bezierPath];



reply via email to

[Prev in Thread] Current Thread [Next in Thread]