mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-20 20:16:28 +00:00
* NSWindow.h change window style enum to match WindowMaker's definition.
* GNUAlertPanel.m NSGetAlertPanel() replace centering code with call to center method, change window style mask, add class initialize. * libgnustep-gui.m rename to Functions.m. * Functions.m add new file as location for generic NS* and GS* functions, move backend NSEventMaskFromType() into it. * NSApplication.m discardEventsMatchingMask:.. rewrite (fix bugs), runModalSession: dump all events not for modal window (fixes modal panel button display bug), arrangeInFront: preliminary implemenation. * NSCell.m: Polish. * NSWindow.m: center remove display invocation per 4.2 docs. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3426 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
caab58e8db
commit
134a561e0c
8 changed files with 225 additions and 219 deletions
|
@ -357,15 +357,14 @@ static id MB_NSCONTROL_CELL_CLASS = nil;
|
|||
return [cell isContinuous];
|
||||
}
|
||||
|
||||
- (BOOL)sendAction:(SEL)theAction
|
||||
to:(id)theTarget
|
||||
- (BOOL)sendAction:(SEL)theAction to:(id)theTarget
|
||||
{
|
||||
NSApplication *theApp = [NSApplication sharedApplication];
|
||||
NSApplication *theApp = [NSApplication sharedApplication];
|
||||
|
||||
if (theAction && theTarget)
|
||||
return [theApp sendAction:theAction to:theTarget from:self];
|
||||
else
|
||||
return NO;
|
||||
if (theAction && theTarget)
|
||||
return [theApp sendAction:theAction to:theTarget from:self];
|
||||
else
|
||||
return NO;
|
||||
}
|
||||
|
||||
- (int)sendActionOn:(int)mask
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue