* Source/GSCharacterPanel.m: Implement -[NSApplication orderFrontCharacterPalette:]

* Source/NSFontPanel.m: Use NSApplication method to order front character palette


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33815 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Eric Wasylishen 2011-09-07 19:31:22 +00:00
parent a6788023fb
commit 4e0ff7f305
3 changed files with 17 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2011-09-07 Eric Wasylishen <ewasylishen@gmail.com>
* Source/GSCharacterPanel.m: Implement -[NSApplication orderFrontCharacterPalette:]
* Source/NSFontPanel.m: Use NSApplication method to order front character palette
2011-09-07 Eric Wasylishen <ewasylishen@gmail.com> 2011-09-07 Eric Wasylishen <ewasylishen@gmail.com>
* Source/NSImageCell.m (-drawInteriorWithFrame:inView:): Simplify a bit * Source/NSImageCell.m (-drawInteriorWithFrame:inView:): Simplify a bit

View file

@ -47,6 +47,17 @@
#include <unicode/uchar.h> #include <unicode/uchar.h>
#include <unicode/ustring.h> #include <unicode/ustring.h>
@implementation NSApplication (CharacterPanel)
- (void) orderFrontCharacterPalette: (id)sender
{
[[GSCharacterPanel sharedCharacterPanel] orderFront: sender];
}
@end
@interface GSVerticallyCenteredTextFieldCell : NSTextFieldCell @interface GSVerticallyCenteredTextFieldCell : NSTextFieldCell
{ {
} }

View file

@ -842,7 +842,7 @@ static float sizes[] = {4.0, 6.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0,
- (void) characterPanel: (id)sender - (void) characterPanel: (id)sender
{ {
[[GSCharacterPanel sharedCharacterPanel] orderFront: nil]; [[NSApplication sharedApplication] orderFrontCharacterPalette: sender];
} }
- (NSFont *) _fontForSelection: (NSFont *)fontObject - (NSFont *) _fontForSelection: (NSFont *)fontObject