mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-04-22 14:10:44 +00:00
* GormInternalViewEditor.m
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@36286 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
2acd3d425a
commit
187ceaf5e7
1 changed files with 9 additions and 0 deletions
|
@ -681,6 +681,7 @@ static NSImage *horizontalImage;
|
|||
NSEnumerator *enumerator = [[self selection] objectEnumerator];
|
||||
id anObject;
|
||||
NSFont *newFont;
|
||||
NSUInteger count = 0;
|
||||
|
||||
NSDebugLog(@"In %@ changing font for %@",[self className],[self selection]);
|
||||
while ((anObject = [enumerator nextObject]))
|
||||
|
@ -688,6 +689,7 @@ static NSImage *horizontalImage;
|
|||
if([anObject respondsToSelector: @selector(setTitleFont:)] &&
|
||||
[anObject respondsToSelector: @selector(setTextFont:)])
|
||||
{
|
||||
count++;
|
||||
newFont = [sender convertFont: [anObject font]];
|
||||
newFont = [[GormFontViewController sharedGormFontViewController]
|
||||
convertFont: newFont];
|
||||
|
@ -697,6 +699,7 @@ static NSImage *horizontalImage;
|
|||
else if ([anObject respondsToSelector: @selector(font)] &&
|
||||
[anObject respondsToSelector: @selector(setFont:)])
|
||||
{
|
||||
count++;
|
||||
newFont = [sender convertFont: [anObject font]];
|
||||
newFont = [[GormFontViewController sharedGormFontViewController]
|
||||
convertFont: newFont];
|
||||
|
@ -704,6 +707,12 @@ static NSImage *horizontalImage;
|
|||
}
|
||||
}
|
||||
|
||||
// if the font was changed, mark us as altered...
|
||||
if(count > 0)
|
||||
{
|
||||
[[self document] touch];
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
@end
|
||||
|
|
Loading…
Reference in a new issue