From e037bfe8cf0cae0f22538351c36ad0c18431d552 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Sun, 16 Feb 2003 23:51:20 +0000 Subject: [PATCH] The introduction of the new virtual SetLimits() is nice in principle, but files compiled with this header implementing a BSlider subclass fail to link against libbe. Introduced a macro that apps can define that need to run under R5 for now. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2730 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/os/interface/Slider.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/headers/os/interface/Slider.h b/headers/os/interface/Slider.h index b5e5b4facf..80652a6f3f 100644 --- a/headers/os/interface/Slider.h +++ b/headers/os/interface/Slider.h @@ -175,7 +175,11 @@ virtual void SetBarThickness(float thickness); virtual void SetFont(const BFont *font, uint32 properties = B_FONT_ALL); +#ifdef BEOS_R5_COMPATIBLE +virtual void _ReservedSlider4(); +#else virtual void SetLimits(int32 minimum, int32 maximum); // Was _ReservedSlider4() +#endif /*----- Private or reserved -----------------------------------------*/ private: void _DrawBlockThumb();