[Expander]:

* Use be_fixed_font in the Show Content TextView (fixes ticket #5272).
 * Minor cleanup in ExpanderThread.cpp


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35122 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Philippe Saint-Pierre 2010-01-17 17:00:08 +00:00
parent 1952dab0df
commit ebb64acec1
2 changed files with 14 additions and 0 deletions

View File

@ -29,12 +29,14 @@ ExpanderThread::ExpanderThread(BMessage * refs_message, BMessenger * messenger)
// (drag&drop messages)
}
ExpanderThread::~ExpanderThread()
{
delete fWindowMessenger;
delete [] fExpanderOutputBuffer;
}
status_t
ExpanderThread::ThreadStartup()
{
@ -83,6 +85,7 @@ ExpanderThread::ThreadStartup()
return B_OK;
}
status_t
ExpanderThread::ExecuteUnit(void)
{
@ -107,6 +110,7 @@ ExpanderThread::ExecuteUnit(void)
return B_OK;
}
status_t
ExpanderThread::ThreadShutdown(void)
{
@ -117,6 +121,7 @@ ExpanderThread::ThreadShutdown(void)
return B_OK;
}
void
ExpanderThread::ThreadStartupFailed(status_t status)
{
@ -125,6 +130,7 @@ ExpanderThread::ThreadStartupFailed(status_t status)
Quit();
}
void
ExpanderThread::ExecuteUnitFailed(status_t status)
{
@ -139,6 +145,7 @@ ExpanderThread::ExecuteUnitFailed(status_t status)
Quit();
}
void
ExpanderThread::ThreadShutdownFailed(status_t status)
{
@ -152,6 +159,7 @@ ExpanderThread::ProcessRefs(BMessage *msg)
return B_OK;
}
thread_id
ExpanderThread::PipeCommand(int argc, const char **argv, int &in, int &out, int &err, const char **envp)
{
@ -209,6 +217,7 @@ ExpanderThread::SuspendExternalExpander()
return status;
}
status_t
ExpanderThread::ResumeExternalExpander()
{
@ -221,6 +230,7 @@ ExpanderThread::ResumeExternalExpander()
return status;
}
status_t
ExpanderThread::InterruptExternalExpander()
{
@ -234,6 +244,7 @@ ExpanderThread::InterruptExternalExpander()
return status;
}
status_t
ExpanderThread::WaitOnExternalExpander()
{

View File

@ -75,6 +75,9 @@ ExpanderWindow::ExpanderWindow(BRect frame, const entry_ref* ref,
fListingText = new BTextView("listingText");
fListingText->SetText("");
fListingText->MakeEditable(false);
fListingText->SetStylable(false);
BFont font = be_fixed_font;
fListingText->SetFontAndColor(&font);
BScrollView* scrollView = new BScrollView("", fListingText,
B_INVALIDATE_AFTER_LAYOUT, false, true);