[67560] trunk/dports/aqua/AppKiDo

jmr at macports.org jmr at macports.org
Wed May 12 19:40:03 PDT 2010


Revision: 67560
          http://trac.macports.org/changeset/67560
Author:   jmr at macports.org
Date:     2010-05-12 19:40:02 -0700 (Wed, 12 May 2010)
Log Message:
-----------
AppKiDo: add files

Added Paths:
-----------
    trunk/dports/aqua/AppKiDo/files/
    trunk/dports/aqua/AppKiDo/files/patch-AKTableView-defaultFontSize.patch

Added: trunk/dports/aqua/AppKiDo/files/patch-AKTableView-defaultFontSize.patch
===================================================================
--- trunk/dports/aqua/AppKiDo/files/patch-AKTableView-defaultFontSize.patch	                        (rev 0)
+++ trunk/dports/aqua/AppKiDo/files/patch-AKTableView-defaultFontSize.patch	2010-05-13 02:40:02 UTC (rev 67560)
@@ -0,0 +1,13 @@
+--- CustomViews/AKTableView.m.orig	2009-07-23 20:35:52.000000000 +0200
++++ CustomViews/AKTableView.m	2010-05-12 22:42:02.000000000 +0200
+@@ -22,7 +22,9 @@
+     int fontSize =
+         [AKPrefUtils intValueForPref:AKListFontSizePrefName];
+     NSFont *font = [NSFont fontWithName:fontName size:fontSize];
+-    int newRowHeight = round([font defaultLineHeightForFont] + 1.0);
++    NSLayoutManager * lm = [[NSLayoutManager alloc] init];
++    int newRowHeight = round([lm defaultLineHeightForFont:font] + 1.0);
++    [lm release];
+ 
+     [[[[self tableColumns] objectAtIndex:0] dataCell] setFont:font];
+     [self setRowHeight:newRowHeight];
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100512/7232cd53/attachment.html>


More information about the macports-changes mailing list