Author: mlytwyn
Date: Fri Jun 26 19:04:20 2015
New Revision: 38704

URL: http://svn.gna.org/viewcvs/gnustep?rev=38704&view=rev
Log:
NSAlert merge

Modified:
    libs/gui/branches/gnustep_testplant_branch/Source/NSAlert.m

Modified: libs/gui/branches/gnustep_testplant_branch/Source/NSAlert.m
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/gui/branches/gnustep_testplant_branch/Source/NSAlert.m?rev=38704&r1=38703&r2=38704&view=diff
==============================================================================
--- libs/gui/branches/gnustep_testplant_branch/Source/NSAlert.m (original)
+++ libs/gui/branches/gnustep_testplant_branch/Source/NSAlert.m Fri Jun 26 
19:04:20 2015
@@ -1789,10 +1789,17 @@
 {
   NSArray *options;
   NSUInteger count;
+  NSString *errorText;
+
+  errorText = [error localizedFailureReason];
+  if (errorText == nil)
+    {
+      errorText = [error localizedDescription];
+    }
 
   options = [error localizedRecoveryOptions];
   count = [options count];
-  return [self alertWithMessageText: [error localizedDescription]
+  return [self alertWithMessageText: errorText
                defaultButton: (count > 0) ? [options objectAtIndex: 0] : nil
                alternateButton: (count > 1) ? [options objectAtIndex: 1] : nil
                otherButton: (count > 2) ? [options objectAtIndex: 2] : nil
@@ -2028,6 +2035,8 @@
                   didEndSelector: (SEL)didEndSelector
                      contextInfo: (void *)contextInfo
 {
+  // Testplant-MAL-2015-06-26: Main branch merge...
+  // Keeping testplant fixes...
   NSRect  frame = [window frame];
   NSPoint point = frame.origin;
   NSSize  size;
@@ -2036,7 +2045,8 @@
   // Ssetup...
   [self _setupPanel];
   
-  // Position window...
+  // Testplant-MAL-2015-06-26: keeping local fixes...
+  // Position window...positions at top and horizontally centered (roughly)
   size  = [_window frame].size;
   point = NSMakePoint(NSMinX(frame), NSMaxY(frame)-size.height);
   width = frame.size.width - size.width;


_______________________________________________
Gnustep-cvs mailing list
Gnustep-cvs@gna.org
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to