mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-25 11:31:02 +00:00
Add -size method from 10.6
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@35701 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
293c07c2f0
commit
f3b7ab026a
2 changed files with 10 additions and 0 deletions
|
@ -623,6 +623,9 @@
|
||||||
*/
|
*/
|
||||||
- (void) setTitle: (NSString*)aTitle;
|
- (void) setTitle: (NSString*)aTitle;
|
||||||
|
|
||||||
|
#if OS_API_VERSION(MAC_OS_X_VERSION_10_6, GS_API_LATEST)
|
||||||
|
- (NSSize) size;
|
||||||
|
#endif
|
||||||
- (void) sizeToFit;
|
- (void) sizeToFit;
|
||||||
|
|
||||||
- (void) submenuAction: (id)sender;
|
- (void) submenuAction: (id)sender;
|
||||||
|
|
|
@ -1480,6 +1480,13 @@ static BOOL menuBarVisible = YES;
|
||||||
return _menu.changedMessagesEnabled;
|
return _menu.changedMessagesEnabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (NSSize) size
|
||||||
|
{
|
||||||
|
if (_view)
|
||||||
|
return [_view frame].size;
|
||||||
|
return NSZeroSize;
|
||||||
|
}
|
||||||
|
|
||||||
- (void) sizeToFit
|
- (void) sizeToFit
|
||||||
{
|
{
|
||||||
NSRect oldWindowFrame;
|
NSRect oldWindowFrame;
|
||||||
|
|
Loading…
Reference in a new issue