Interface Kit: remove more workarounds for BDragger
This workarounds are no longer needed after hrev53713. Change-Id: I7b809c79bd9d2345a991f0d2360f79876d10cd6b Reviewed-on: https://review.haiku-os.org/c/haiku/+/2132 Reviewed-by: Stephan Aßmus <[email protected]>
This commit is contained in:
@@ -260,18 +260,6 @@ BDragger::Draw(BRect update)
|
|||||||
if (fIsZombie) {
|
if (fIsZombie) {
|
||||||
// TODO: should draw it differently ?
|
// TODO: should draw it differently ?
|
||||||
}
|
}
|
||||||
} else if (IsVisibilityChanging()) {
|
|
||||||
if (Parent() != NULL) {
|
|
||||||
if ((Parent()->Flags() & B_DRAW_ON_CHILDREN) == 0) {
|
|
||||||
uint32 flags = Parent()->Flags();
|
|
||||||
Parent()->SetFlags(flags | B_DRAW_ON_CHILDREN);
|
|
||||||
Parent()->Invalidate(Frame() & ConvertToParent(update));
|
|
||||||
Parent()->SetFlags(flags);
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
SetHighColor(255, 255, 255);
|
|
||||||
FillRect(bounds);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -326,10 +314,7 @@ BDragger::MessageReceived(BMessage* msg)
|
|||||||
// This code is used whenever the "are draggers drawn" option is
|
// This code is used whenever the "are draggers drawn" option is
|
||||||
// changed.
|
// changed.
|
||||||
if (fRelation == TARGET_IS_CHILD) {
|
if (fRelation == TARGET_IS_CHILD) {
|
||||||
fTransition = true;
|
Invalidate(Bounds());
|
||||||
Draw(Bounds());
|
|
||||||
Flush();
|
|
||||||
fTransition = false;
|
|
||||||
} else {
|
} else {
|
||||||
if ((fShelf != NULL && fShelf->AllowsDragging()
|
if ((fShelf != NULL && fShelf->AllowsDragging()
|
||||||
&& AreDraggersDrawn())
|
&& AreDraggersDrawn())
|
||||||
|
|||||||
Reference in New Issue
Block a user