Call BScrollBar::SetSteps() with the correct values also on font change,
and when a scrollbar is attached. Fixes bug #1759 git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23913 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -461,6 +461,10 @@ TermView::SetTermFont(const BFont *font)
|
|||||||
fTop = fTop * fFontHeight;
|
fTop = fTop * fFontHeight;
|
||||||
|
|
||||||
fCursorHeight = fFontHeight;
|
fCursorHeight = fFontHeight;
|
||||||
|
|
||||||
|
if (fScrollBar != NULL) {
|
||||||
|
fScrollBar->SetSteps(fFontHeight, fFontHeight * fTermRows);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -468,6 +472,9 @@ void
|
|||||||
TermView::SetScrollBar(BScrollBar *scrollBar)
|
TermView::SetScrollBar(BScrollBar *scrollBar)
|
||||||
{
|
{
|
||||||
fScrollBar = scrollBar;
|
fScrollBar = scrollBar;
|
||||||
|
if (fScrollBar != NULL) {
|
||||||
|
fScrollBar->SetSteps(fFontHeight, fFontHeight * fTermRows);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -2295,9 +2302,7 @@ TermView::GetSelection(BString &str)
|
|||||||
void
|
void
|
||||||
TermView::NotifyQuit(int32 reason)
|
TermView::NotifyQuit(int32 reason)
|
||||||
{
|
{
|
||||||
// TODO: If we are a replicant, we can't just quit the BWindow, no?.
|
// implemented in subclasses
|
||||||
// Exactly, and the same is true for tabs!
|
|
||||||
Window()->PostMessage(B_QUIT_REQUESTED);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -155,7 +155,7 @@ private:
|
|||||||
inline void _Redraw(int, int, int, int);
|
inline void _Redraw(int, int, int, int);
|
||||||
|
|
||||||
void _DoPrint(BRect updateRect);
|
void _DoPrint(BRect updateRect);
|
||||||
void _ResizeScrBarRange (void);
|
void _ResizeScrBarRange(void);
|
||||||
void _DoFileDrop(entry_ref &ref);
|
void _DoFileDrop(entry_ref &ref);
|
||||||
|
|
||||||
void _WritePTY(const uchar *text, int num_byteses);
|
void _WritePTY(const uchar *text, int num_byteses);
|
||||||
|
|||||||
Reference in New Issue
Block a user