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:
@@ -32,7 +32,7 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <OS.h>
|
#include <OS.h>
|
||||||
#include <Window.h>
|
#include <Window.h>
|
||||||
#include <ScrollBar.h>
|
#include "ScrollBar.h"
|
||||||
|
|
||||||
//#define TEST_MODE
|
//#define TEST_MODE
|
||||||
|
|
||||||
@@ -380,8 +380,10 @@ void BScrollBar::SetTarget(BView *target)
|
|||||||
fTargetName=new char[strlen(target->Name())+1];
|
fTargetName=new char[strlen(target->Name())+1];
|
||||||
strcpy(fTargetName,target->Name());
|
strcpy(fTargetName,target->Name());
|
||||||
|
|
||||||
// TODO: theoretically, we should also set the target BView's scrollbar
|
if(Orientation() == B_VERTICAL)
|
||||||
// pointer here
|
fTarget->fVerScroller=this;
|
||||||
|
else
|
||||||
|
fTarget->fHorScroller=this;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
fTargetName=NULL;
|
fTargetName=NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user