* Temporarily removed the "Only Show Blocks Contained in Font" - Haiku does

not yet support this.
* Made sure the correct font is selected at start.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29816 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2009-03-31 11:55:59 +00:00
parent b045287228
commit 6722e2f797

View File

@ -146,9 +146,12 @@ CharacterWindow::CharacterWindow()
menu->AddItem(item = new BMenuItem("Show Private Blocks",
new BMessage(kMsgPrivateBlocks)));
item->SetMarked(fCharacterView->IsShowingPrivateBlocks());
// TODO: this feature is not yet supported by Haiku!
#if 0
menu->AddItem(item = new BMenuItem("Only Show Blocks Contained in Font",
new BMessage(kMsgContainedBlocks)));
item->SetMarked(fCharacterView->IsShowingContainedBlocksOnly());
#endif
menuBar->AddItem(menu);
menuBar->AddItem(_CreateFontMenu());
@ -339,7 +342,8 @@ CharacterWindow::_CreateFontMenu()
font_family currentFamily;
font_style currentStyle;
be_plain_font->GetFamilyAndStyle(&currentFamily, &currentStyle);
fCharacterView->CharacterFont().GetFamilyAndStyle(&currentFamily,
&currentStyle);
int32 numFamilies = count_font_families();
@ -385,7 +389,7 @@ CharacterWindow::_UpdateUnicodeBlocks()
if (item->IsEnabled() != enabled) {
item->SetEnabled(enabled);
fUnicodeBlockView->InvalidateItem(i);
}
}
}
}
@ -404,7 +408,6 @@ CharacterWindow::_CreateUnicodeBlocks()
}
fUnicodeBlockView->SetExplicitMinSize(BSize(minWidth / 2, 32));
// TODO: why is this ignored?
fUnicodeBlockView->SetExplicitMaxSize(BSize(minWidth, B_SIZE_UNSET));
_UpdateUnicodeBlocks();