BScrollBar now sets the internal BView scrollbar pointers
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12759 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
eab4dcf7de
commit
423a41b8cd
|
@ -32,7 +32,7 @@
|
|||
#include <string.h>
|
||||
#include <OS.h>
|
||||
#include <Window.h>
|
||||
#include <ScrollBar.h>
|
||||
#include "ScrollBar.h"
|
||||
|
||||
//#define TEST_MODE
|
||||
|
||||
|
@ -380,8 +380,10 @@ void BScrollBar::SetTarget(BView *target)
|
|||
fTargetName=new char[strlen(target->Name())+1];
|
||||
strcpy(fTargetName,target->Name());
|
||||
|
||||
// TODO: theoretically, we should also set the target BView's scrollbar
|
||||
// pointer here
|
||||
if(Orientation() == B_VERTICAL)
|
||||
fTarget->fVerScroller=this;
|
||||
else
|
||||
fTarget->fHorScroller=this;
|
||||
}
|
||||
else
|
||||
fTargetName=NULL;
|
||||
|
|
Loading…
Reference in New Issue