Frameworks/Adium Framework/Source/JVFontPreviewField.m
branchadium-1.5.11
changeset 6016 325e2ab3406f
parent 3737 f06bf1a9d888
equal deleted inserted replaced
6014:fcb71cb71a3d 6016:325e2ab3406f
    65 
    65 
    66 	if ([__delegate respondsToSelector:@selector(fontPreviewField:didChangeToFont:)])
    66 	if ([__delegate respondsToSelector:@selector(fontPreviewField:didChangeToFont:)])
    67 		[__delegate fontPreviewField:self didChangeToFont:font];
    67 		[__delegate fontPreviewField:self didChangeToFont:font];
    68 }
    68 }
    69 
    69 
    70 - (NSUInteger) validModesForFontPanel:(NSFontPanel *) fontPanel
    70 - (NSFontPanelModeMask)validModesForFontPanel:(NSFontPanel *)fontPanel
    71 {
    71 {
    72 	unsigned int ret = NSFontPanelStandardModesMask;
    72 	unsigned int ret = NSFontPanelStandardModesMask;
    73 	if (!_showPointSize) ret ^= NSFontPanelSizeModeMask;
    73 	if (!_showPointSize) ret ^= NSFontPanelSizeModeMask;
    74 	if (!_showFontFace) ret ^= NSFontPanelFaceModeMask;
    74 	if (!_showFontFace) ret ^= NSFontPanelFaceModeMask;
    75 	return ret;
    75 	return ret;