Hi

The attached tested patch includes the wxWidgets patch for broken font dialog for Snow Leopard with 2.8.10

I have not committed changes as they will need to be removed when Alien default 2.8 moves to 2.8.11 ( out soon it would seem )

Mark
Index: patches/data-2.8.10
===================================================================
--- patches/data-2.8.10 (revision 2757)
+++ patches/data-2.8.10 (working copy)
@@ -22,9 +22,11 @@
                },
   mac     => { unicode => [ qw(
 wxMac-2.8.3-brokengcc.patch
+wxMac-2.8.10-fontdlg.patch
                                ), @common ],
                ansi    => [ qw(
 wxMac-2.8.3-brokengcc.patch
+wxMac-2.8.10-fontdlg.patch
                                ), @common ],
                },
   unix    => { unicode => [ qw(
Index: patches/wxMac-2.8.10-fontdlg.patch
===================================================================
--- patches/wxMac-2.8.10-fontdlg.patch  (revision 0)
+++ patches/wxMac-2.8.10-fontdlg.patch  (revision 0)
@@ -0,0 +1,16 @@
+diff -u src/mac/carbon/fontdlgosx.mm src/mac/carbon/fontdlgosx.mm
+--- src/mac/carbon/fontdlgosx.mm       2007/01/22 21:46:14     44296
++++ src/mac/carbon/fontdlgosx.mm       2009/09/01 13:36:08     61800
+@@ -169,7 +169,11 @@
+ 
+     NSModalSession session = [NSApp beginModalSessionForWindow:fontPanel];
+ 
+-    [NSApp runModalSession:session];
++    for (;;)
++    {
++        if ([NSApp runModalSession:session] != NSRunContinuesResponse)
++            break;
++    }
+ 
+     [NSApp endModalSession:session];
+ 

Reply via email to