Author: manolo
Date: 2011-07-11 07:53:07 -0700 (Mon, 11 Jul 2011)
New Revision: 8852
Log:
Mac OS: fix STR #2666 allowing to display copyright info in the default About
window.
Modified:
branches/branch-1.3/src/Fl_cocoa.mm
Modified: branches/branch-1.3/src/Fl_cocoa.mm
===================================================================
--- branches/branch-1.3/src/Fl_cocoa.mm 2011-07-11 13:52:16 UTC (rev 8851)
+++ branches/branch-1.3/src/Fl_cocoa.mm 2011-07-11 14:53:07 UTC (rev 8852)
@@ -2866,10 +2866,11 @@
{
NSDictionary *options;
options = [NSDictionary dictionaryWithObjectsAndKeys:
- [NSString stringWithFormat:@" GUI with FLTK
%d.%d", FL_MAJOR_VERSION,
- FL_MINOR_VERSION ], @"Copyright",
+ [[[NSAttributedString alloc]
+ initWithString:[NSString stringWithFormat:@" GUI with FLTK
%d.%d",
+ FL_MAJOR_VERSION, FL_MINOR_VERSION ]] autorelease], @"Credits",
nil];
- [NSApp orderFrontStandardAboutPanelWithOptions:options];
+ [NSApp orderFrontStandardAboutPanelWithOptions:options];
}
//#include <FL/Fl_PostScript.H>
- (void)printPanel
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit