BScrollBar: Remove DISABLE_ON_WINDOW_DEACTIVATION constant.

It was always enabled, and disabling it would break ABI.
If we want to make it disable-able, it needs to be a setting,
but I don't really see a reason for that.
This commit is contained in:
Augustin Cavalier 2020-07-04 19:40:59 -04:00
parent e9815ed8b6
commit 9fe3529f3e
2 changed files with 0 additions and 6 deletions

View File

@ -12,8 +12,6 @@
#define B_V_SCROLL_BAR_WIDTH 14.0f
#define B_H_SCROLL_BAR_HEIGHT 14.0f
#define DISABLES_ON_WINDOW_DEACTIVATION 1
class BScrollBar : public BView {
public:
@ -46,9 +44,7 @@ public:
virtual void MouseMoved(BPoint where, uint32 code,
const BMessage* dragMessage);
#if DISABLES_ON_WINDOW_DEACTIVATION
virtual void WindowActivated(bool active);
#endif
void SetValue(float value);
float Value() const;

View File

@ -720,14 +720,12 @@ BScrollBar::MouseUp(BPoint where)
}
#if DISABLES_ON_WINDOW_DEACTIVATION
void
BScrollBar::WindowActivated(bool active)
{
fPrivateData->fEnabled = active;
Invalidate();
}
#endif // DISABLES_ON_WINDOW_DEACTIVATION
void