diff --git a/src/apps/deskbar/StatusView.cpp b/src/apps/deskbar/StatusView.cpp index fcaaded31b..a5041010f3 100644 --- a/src/apps/deskbar/StatusView.cpp +++ b/src/apps/deskbar/StatusView.cpp @@ -306,26 +306,6 @@ TReplicantTray::AdjustPlacement() } -void -TReplicantTray::Draw(BRect) -{ -return; - rgb_color menuColor = ViewColor(); - rgb_color vdark = tint_color(menuColor, B_DARKEN_3_TINT); - rgb_color light = tint_color(menuColor, B_LIGHTEN_2_TINT); - - BRect frame(Bounds()); - - SetHighColor(light); - StrokeLine(frame.LeftBottom(), frame.RightBottom()); - StrokeLine(frame.RightBottom(), frame.RightTop()); - - SetHighColor(vdark); - StrokeLine(frame.RightTop(), frame.LeftTop()); - StrokeLine(frame.LeftTop(), frame.LeftBottom()); -} - - void TReplicantTray::MessageReceived(BMessage* message) { diff --git a/src/apps/deskbar/StatusView.h b/src/apps/deskbar/StatusView.h index 5456c81093..aeef04be5e 100644 --- a/src/apps/deskbar/StatusView.h +++ b/src/apps/deskbar/StatusView.h @@ -79,7 +79,6 @@ public: virtual void AttachedToWindow(); virtual void DetachedFromWindow(); - virtual void Draw(BRect updateRect); virtual void MouseDown(BPoint point); virtual void MessageReceived(BMessage*); virtual void GetPreferredSize(float*, float*); @@ -144,7 +143,7 @@ private: void RemoveItem(int32 id); void MoveItem(entry_ref*, ino_t toDirectory); -#endif +#endif BPoint LocationForReplicant(int32 index, float width); BShelf* Shelf() const; @@ -160,7 +159,7 @@ private: bool fMultiRowMode; float fMinimumTrayWidth; - bool fAlignmentSupport; + bool fAlignmentSupport; #ifdef DB_ADDONS BList* fItemList; uint64 fDeskbarSecurityCode; @@ -181,7 +180,7 @@ enum { class TDragRegion : public BControl { public: TDragRegion(TBarView*, BView*); - + virtual void AttachedToWindow(); virtual void GetPreferredSize(float*, float*); virtual void Draw(BRect); @@ -192,10 +191,10 @@ public: void DrawDragRegion(); BRect DragRegion() const; - - bool SwitchModeForRect(BPoint mouse, BRect rect, + + bool SwitchModeForRect(BPoint mouse, BRect rect, bool newVertical, bool newLeft, bool newTop, int32 newState); - + int32 DragRegionLocation() const; void SetDragRegionLocation(int32);