mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 16:10:37 +00:00
Diverse gui patches by Wolfgang Lux <wolfgang.lux@gmail.com>.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25451 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
347b646c1d
commit
9a371e74bd
4 changed files with 165 additions and 126 deletions
|
@ -1582,30 +1582,31 @@ void NSBeginInformationalAlertSheet(NSString *title,
|
|||
{
|
||||
GSAlertPanel *panel;
|
||||
NSString *title;
|
||||
unsigned nbut = [_buttons count];
|
||||
|
||||
panel = [[GSAlertPanel alloc] init];
|
||||
_window = panel;
|
||||
|
||||
switch (_style)
|
||||
{
|
||||
case NSCriticalAlertStyle:
|
||||
title = @"Critical";
|
||||
break;
|
||||
case NSInformationalAlertStyle:
|
||||
title = @"Information";
|
||||
break;
|
||||
case NSWarningAlertStyle:
|
||||
default:
|
||||
title = @"Alert";
|
||||
break;
|
||||
}
|
||||
{
|
||||
case NSCriticalAlertStyle:
|
||||
title = @"Critical";
|
||||
break;
|
||||
case NSInformationalAlertStyle:
|
||||
title = @"Information";
|
||||
break;
|
||||
case NSWarningAlertStyle:
|
||||
default:
|
||||
title = @"Alert";
|
||||
break;
|
||||
}
|
||||
[panel setTitleBar: title
|
||||
icon: _icon
|
||||
title: _informative_text
|
||||
message: _message_text
|
||||
def: [[_buttons objectAtIndex: 0] title]
|
||||
alt: [[_buttons objectAtIndex: 1] title]
|
||||
other: [[_buttons objectAtIndex: 2] title]];
|
||||
icon: _icon
|
||||
title: _informative_text
|
||||
message: _message_text
|
||||
def: (nbut > 0) ? [[_buttons objectAtIndex: 0] title] : (NSString*)nil
|
||||
alt: (nbut > 1) ? [[_buttons objectAtIndex: 1] title] : (NSString*)nil
|
||||
other: (nbut > 2) ? [[_buttons objectAtIndex: 2] title] : (NSString*)nil];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue