* Moved _CreateBlocks() back into the constructor. That used to make bug #3572
more reproducible, but it doesn't work for me anymore. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30148 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -28,6 +28,7 @@ UnicodeBlockView::UnicodeBlockView(const char* name)
|
|||||||
fShowPrivateBlocks(false),
|
fShowPrivateBlocks(false),
|
||||||
fShowContainedBlocksOnly(false)
|
fShowContainedBlocksOnly(false)
|
||||||
{
|
{
|
||||||
|
_CreateBlocks();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -79,22 +80,6 @@ UnicodeBlockView::IsShowingBlock(int32 blockIndex) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
|
||||||
UnicodeBlockView::AttachedToWindow()
|
|
||||||
{
|
|
||||||
// TODO: if we're calling this in the constructor, strange things happen
|
|
||||||
_CreateBlocks();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void
|
|
||||||
UnicodeBlockView::DetachedFromWindow()
|
|
||||||
{
|
|
||||||
MakeEmpty();
|
|
||||||
fBlocks.MakeEmpty();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
UnicodeBlockView::_UpdateBlocks()
|
UnicodeBlockView::_UpdateBlocks()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -41,10 +41,6 @@ public:
|
|||||||
|
|
||||||
bool IsShowingBlock(int32 blockIndex) const;
|
bool IsShowingBlock(int32 blockIndex) const;
|
||||||
|
|
||||||
protected:
|
|
||||||
virtual void AttachedToWindow();
|
|
||||||
virtual void DetachedFromWindow();
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void _UpdateBlocks();
|
void _UpdateBlocks();
|
||||||
void _CreateBlocks();
|
void _CreateBlocks();
|
||||||
|
|||||||
Reference in New Issue
Block a user